Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008975/0.0008981, allocations: 175 kB / 17.41 MB, free: 4.391 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 225.7 MB / 243.9 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008176/0.0008176, allocations: 91.64 kB / 295 MB, free: 9.719 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3537/0.3537, allocations: 44.32 MB / 390.5 MB, free: 38.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004931/0.000493, allocations: 8 kB / 463.1 MB, free: 488 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4292/0.4297, allocations: 61.9 MB / 0.5127 GB, free: 38.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0006763/0.4305, allocations: 201.2 kB / 0.5129 GB, free: 38.08 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003664/0.4341, allocations: 4.156 MB / 0.517 GB, free: 34.17 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.54e-05/0.4342, allocations: 0 / 0.517 GB, free: 34.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.871e-05/0.4342, allocations: 0 / 0.517 GB, free: 34.17 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.779e-06/0.4342, allocations: 4 kB / 0.517 GB, free: 34.16 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.002179/0.4364, allocations: 1.672 MB / 0.5186 GB, free: 32.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.633e-05/0.4364, allocations: 0 / 0.5186 GB, free: 32.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.046e-05/0.4365, allocations: 2.594 kB / 0.5186 GB, free: 32.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.593e-05/0.4365, allocations: 0 / 0.5186 GB, free: 32.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.603e-05/0.4365, allocations: 0 / 0.5186 GB, free: 32.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.5e-06/0.4366, allocations: 0 / 0.5186 GB, free: 32.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00149/0.438, allocations: 0.932 MB / 0.5195 GB, free: 32.48 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.156e-06/0.4381, allocations: 0 / 0.5195 GB, free: 32.48 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.494e-05/0.4381, allocations: 28.7 kB / 0.5196 GB, free: 32.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005834/0.4387, allocations: 418.6 kB / 0.52 GB, free: 32.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4387, allocations: 1.062 kB / 0.52 GB, free: 32.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4387, allocations: 0 / 0.52 GB, free: 32.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.4387, allocations: 0 / 0.52 GB, free: 32.29 MB / 378.7 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.0003849/0.4391, allocations: 423.7 kB / 0.5204 GB, free: 31.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.4392, allocations: 8.156 kB / 0.5204 GB, free: 31.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.4392, allocations: 6.438 kB / 0.5204 GB, free: 31.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.527e-05/0.4393, allocations: 160.4 kB / 0.5205 GB, free: 31.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.4393, allocations: 1.656 kB / 0.5205 GB, free: 31.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.142e-05/0.4393, allocations: 384 / 0.5205 GB, free: 31.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.4394, allocations: 39.69 kB / 0.5206 GB, free: 31.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.4395, allocations: 0 / 0.5206 GB, free: 31.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.4395, allocations: 1.25 kB / 0.5206 GB, free: 31.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.4395, allocations: 0 / 0.5206 GB, free: 31.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.173e-05/0.4395, allocations: 1.031 kB / 0.5206 GB, free: 31.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001035/0.4396, allocations: 159 kB / 0.5207 GB, free: 31.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.38e-05/0.4397, allocations: 15.77 kB / 0.5207 GB, free: 31.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.252e-05/0.4397, allocations: 6.109 kB / 0.5207 GB, free: 31.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.4397, allocations: 5.234 kB / 0.5208 GB, free: 31.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.4397, allocations: 65.27 kB / 0.5208 GB, free: 31.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.4398, allocations: 0 / 0.5208 GB, free: 31.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001883/0.4399, allocations: 65.97 kB / 0.5209 GB, free: 31.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.44, allocations: 82.3 kB / 0.521 GB, free: 31.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.837e-05/0.44, allocations: 89.86 kB / 0.521 GB, free: 31.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.4401, allocations: 26.83 kB / 0.5211 GB, free: 31.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.958e-05/0.4401, allocations: 80.14 kB / 0.5211 GB, free: 30.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.4401, allocations: 5.156 kB / 0.5211 GB, free: 30.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-06/0.4401, allocations: 0 / 0.5211 GB, free: 30.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.86e-05/0.4402, allocations: 312.2 kB / 0.5214 GB, free: 30.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.755e-06/0.4402, allocations: 0 / 0.5214 GB, free: 30.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.4402, allocations: 8.359 kB / 0.5215 GB, free: 30.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.879e-05/0.4403, allocations: 64.08 kB / 0.5215 GB, free: 30.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.4403, allocations: 0 / 0.5215 GB, free: 30.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.364e-05/0.4403, allocations: 66 kB / 0.5216 GB, free: 30.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.4404, allocations: 37.81 kB / 0.5216 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.4404, allocations: 0.8125 kB / 0.5216 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.4404, allocations: 0 / 0.5216 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-06/0.4404, allocations: 0.8125 kB / 0.5216 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.4404, allocations: 0 / 0.5216 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.4405, allocations: 7.297 kB / 0.5216 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-06/0.4405, allocations: 1.031 kB / 0.5216 GB, free: 30.44 MB / 378.7 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 6.244e-05/0.4405, allocations: 134.1 kB / 0.5218 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.799e-06/0.4405, allocations: 8 kB / 0.5218 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.254e-05/0.4406, allocations: 7.562 kB / 0.5218 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.4406, allocations: 0 / 0.5218 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.4406, allocations: 1.031 kB / 0.5218 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.4406, allocations: 0 / 0.5218 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.307e-05/0.4407, allocations: 147 kB / 0.5219 GB, free: 30.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.4407, allocations: 4 kB / 0.5219 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.4407, allocations: 0 / 0.5219 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.4407, allocations: 5 kB / 0.5219 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-06/0.4407, allocations: 3.938 kB / 0.5219 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.4407, allocations: 5.094 kB / 0.5219 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4407, allocations: 0 / 0.5219 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001166/0.4408, allocations: 92.62 kB / 0.522 GB, free: 29.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.285e-05/0.4409, allocations: 78.45 kB / 0.5221 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.4409, allocations: 13.19 kB / 0.5221 GB, free: 29.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.959e-06/0.4409, allocations: 0 / 0.5221 GB, free: 29.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.758e-05/0.4409, allocations: 1.25 kB / 0.5221 GB, free: 29.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.441, allocations: 1.25 kB / 0.5221 GB, free: 29.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.852e-05/0.441, allocations: 78.66 kB / 0.5222 GB, free: 29.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.441, allocations: 0 / 0.5222 GB, free: 29.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004912/0.4415, allocations: 134 kB / 0.5223 GB, free: 29.77 MB / 378.7 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.0007152/0.4422, allocations: 376.8 kB / 0.5227 GB, free: 29.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.469e-05/0.4423, allocations: 55.7 kB / 0.5227 GB, free: 29.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4423, allocations: 0 / 0.5227 GB, free: 29.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.366e-05/0.4423, allocations: 67.88 kB / 0.5228 GB, free: 29.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000117/0.4425, allocations: 3.609 kB / 0.5228 GB, free: 29.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001603/0.4426, allocations: 77.67 kB / 0.5229 GB, free: 29.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.4428, allocations: 0.6733 MB / 0.5235 GB, free: 28.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.22e-06/0.4428, allocations: 0 / 0.5235 GB, free: 28.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.106e-06/0.4428, allocations: 7.438 kB / 0.5235 GB, free: 28.66 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4428, allocations: 3.938 kB / 0.5235 GB, free: 28.66 MB / 378.7 MB Notification: Performance of Templates: time 0.006915/0.4497, allocations: 4.286 MB / 0.5277 GB, free: 28.2 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches