Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 110.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001951/0.001951, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.432/2.432, allocations: 222.9 MB / 242.4 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3804/0.3804, allocations: 44.16 MB / 336.8 MB, free: 2.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002738/0.002738, allocations: 60.72 kB / 408.3 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2179, allocations: 60.83 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.003101/0.221, allocations: 0.5216 MB / 469.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005607/0.2267, allocations: 2.352 MB / 472 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.805e-05/0.2268, allocations: 0 / 472 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.757e-05/0.2268, allocations: 0 / 472 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.226e-06/0.2269, allocations: 0 / 472 MB, free: 11.96 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function ‘ModelicaTest.ComplexMath.ComplexFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.004006/0.2309, allocations: 1.035 MB / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.85e-05/0.231, allocations: 0 / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.676e-05/0.231, allocations: 0 / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.417e-05/0.2311, allocations: 4 kB / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.323e-05/0.2311, allocations: 0 / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.2311, allocations: 0 / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002541/0.2337, allocations: 0.9677 MB / 474.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.195e-05/0.2337, allocations: 0 / 474.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.631e-05/0.2338, allocations: 3.938 kB / 474.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006194/0.2344, allocations: 259.6 kB / 474.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.068e-05/0.2344, allocations: 0 / 474.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2344, allocations: 3.938 kB / 474.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.2345, allocations: 4 kB / 474.3 MB, free: 9.684 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0007326/0.2352, allocations: 421.3 kB / 474.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.39e-05/0.2353, allocations: 8.031 kB / 474.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.769e-05/0.2354, allocations: 4.875 kB / 474.7 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.2355, allocations: 172.4 kB / 474.9 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.2356, allocations: 4.312 kB / 474.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.2356, allocations: 4.375 kB / 474.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001482/0.2358, allocations: 34.02 kB / 475 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.2358, allocations: 0 / 475 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.2358, allocations: 0 / 475 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2358, allocations: 0 / 475 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.938e-05/0.2359, allocations: 4 kB / 475 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000215/0.2361, allocations: 145.7 kB / 475.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.232e-05/0.2362, allocations: 30.53 kB / 475.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.507e-05/0.2362, allocations: 4.859 kB / 475.1 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.344e-06/0.2362, allocations: 0 / 475.1 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.108e-05/0.2363, allocations: 68.14 kB / 475.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.2363, allocations: 0 / 475.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002914/0.2366, allocations: 63.45 kB / 475.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/0.2367, allocations: 81.23 kB / 475.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.697e-05/0.2368, allocations: 93.86 kB / 475.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.2368, allocations: 25.7 kB / 475.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.2369, allocations: 84.12 kB / 475.5 MB, free: 8.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.2369, allocations: 0 / 475.5 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.147e-05/0.237, allocations: 13.72 kB / 475.6 MB, free: 8.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.2372, allocations: 314.8 kB / 475.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.824e-05/0.2372, allocations: 3.938 kB / 475.9 MB, free: 7.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.151e-05/0.2372, allocations: 4 kB / 475.9 MB, free: 7.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.844e-05/0.2373, allocations: 64.25 kB / 475.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.2373, allocations: 0 / 475.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001162/0.2375, allocations: 63.41 kB / 476 MB, free: 7.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.022e-05/0.2375, allocations: 33.64 kB / 476 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2375, allocations: 0 / 476 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.2376, allocations: 0 / 476 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.184e-06/0.2376, allocations: 0 / 476 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.2376, allocations: 7.984 kB / 476 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.56e-05/0.2376, allocations: 4.375 kB / 476 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.2377, allocations: 4 kB / 476 MB, free: 7.688 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.2378, allocations: 139.5 kB / 476.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.2378, allocations: 7.875 kB / 476.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.998e-05/0.2379, allocations: 7.078 kB / 476.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.2379, allocations: 0 / 476.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2379, allocations: 0 / 476.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2379, allocations: 0 / 476.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.2381, allocations: 153.6 kB / 476.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2381, allocations: 4 kB / 476.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.2381, allocations: 0 / 476.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.2381, allocations: 3.938 kB / 476.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.2381, allocations: 4 kB / 476.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2382, allocations: 0 / 476.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2382, allocations: 0 / 476.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001679/0.2383, allocations: 94.73 kB / 476.4 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.2384, allocations: 77.11 kB / 476.5 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.2385, allocations: 11.97 kB / 476.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.778e-05/0.2385, allocations: 0 / 476.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.093e-05/0.2385, allocations: 0 / 476.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.411e-06/0.2385, allocations: 3.938 kB / 476.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.019e-05/0.2386, allocations: 75.28 kB / 476.6 MB, free: 7.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2386, allocations: 3.938 kB / 476.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007508/0.2394, allocations: 140 kB / 476.8 MB, free: 6.867 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001091/0.2405, allocations: 365.4 kB / 477.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000144/0.2406, allocations: 59.39 kB / 477.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2407, allocations: 4 kB / 477.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.792e-05/0.2407, allocations: 55.47 kB / 477.2 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.2409, allocations: 6.344 kB / 477.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003113/0.2413, allocations: 100.4 kB / 477.3 MB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.2417, allocations: 0.677 MB / 478 MB, free: 5.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.781e-05/0.2417, allocations: 7.438 kB / 478 MB, free: 5.52 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2417, allocations: 0 / 478 MB, free: 5.52 MB / 350.1 MB Notification: Performance of Templates: time 0.01219/0.2539, allocations: 3.616 MB / 481.6 MB, free: 1.898 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches