Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 174.2 kB / 17.41 MB, free: 4.41 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.504/1.504, allocations: 225.7 MB / 243.9 MB, free: 10.19 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.0008095/0.0008094, allocations: 98.86 kB / 295.1 MB, free: 9.73 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.3723/0.3723, allocations: 44.33 MB / 390.5 MB, free: 38.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003174, allocations: 11.98 kB / 463.1 MB, free: 484 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.375, allocations: 61.9 MB / 0.5127 GB, free: 37.85 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0005567/0.3756, allocations: 203.2 kB / 0.5129 GB, free: 37.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.3786, allocations: 4.159 MB / 0.517 GB, free: 33.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.424e-05/0.3786, allocations: 0 / 0.517 GB, free: 33.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.309e-05/0.3787, allocations: 0 / 0.517 GB, free: 33.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.49e-06/0.3787, allocations: 0 / 0.517 GB, free: 33.8 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.002146/0.3808, allocations: 1.674 MB / 0.5186 GB, free: 32.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.156e-05/0.3809, allocations: 3.984 kB / 0.5186 GB, free: 32.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.313e-05/0.3809, allocations: 0 / 0.5186 GB, free: 32.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.571e-05/0.3809, allocations: 0 / 0.5186 GB, free: 32.39 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.401e-05/0.381, allocations: 2.375 kB / 0.5186 GB, free: 32.39 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.252e-06/0.381, allocations: 0 / 0.5186 GB, free: 32.39 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.3822, allocations: 0.9258 MB / 0.5195 GB, free: 32.12 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.697e-06/0.3822, allocations: 1.062 kB / 0.5195 GB, free: 32.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.149e-05/0.3823, allocations: 30.64 kB / 0.5196 GB, free: 32.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005571/0.3828, allocations: 413.1 kB / 0.52 GB, free: 31.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3829, allocations: 7.875 kB / 0.52 GB, free: 31.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3829, allocations: 0 / 0.52 GB, free: 31.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.3829, allocations: 0 / 0.52 GB, free: 31.93 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.0003385/0.3832, allocations: 422.5 kB / 0.5204 GB, free: 31.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3833, allocations: 8.812 kB / 0.5204 GB, free: 31.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.157e-05/0.3833, allocations: 2.062 kB / 0.5204 GB, free: 31.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.051e-05/0.3834, allocations: 163.8 kB / 0.5205 GB, free: 31.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.3834, allocations: 384 / 0.5205 GB, free: 31.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.3834, allocations: 5.812 kB / 0.5205 GB, free: 31.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.154e-05/0.3835, allocations: 32.39 kB / 0.5206 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.3835, allocations: 0 / 0.5206 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.3835, allocations: 1.469 kB / 0.5206 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3835, allocations: 0 / 0.5206 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.618e-05/0.3836, allocations: 5.438 kB / 0.5206 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.542e-05/0.3837, allocations: 154.4 kB / 0.5207 GB, free: 31.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.035e-05/0.3837, allocations: 23.95 kB / 0.5207 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.257e-05/0.3837, allocations: 6.484 kB / 0.5207 GB, free: 31.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.283e-06/0.3837, allocations: 0 / 0.5207 GB, free: 31.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.3838, allocations: 61.36 kB / 0.5208 GB, free: 30.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.492e-06/0.3838, allocations: 3.984 kB / 0.5208 GB, free: 30.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001484/0.3839, allocations: 70.48 kB / 0.5209 GB, free: 30.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.384, allocations: 78.42 kB / 0.521 GB, free: 30.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.073e-05/0.384, allocations: 89.86 kB / 0.521 GB, free: 30.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.605e-06/0.384, allocations: 29.83 kB / 0.5211 GB, free: 30.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.483e-05/0.384, allocations: 81.52 kB / 0.5211 GB, free: 30.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.384, allocations: 3.328 kB / 0.5211 GB, free: 30.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.903e-06/0.384, allocations: 0 / 0.5211 GB, free: 30.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.899e-05/0.3841, allocations: 311.8 kB / 0.5214 GB, free: 30.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.785e-06/0.3841, allocations: 1.125 kB / 0.5214 GB, free: 30.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.829e-06/0.3841, allocations: 1.156 kB / 0.5214 GB, free: 30.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.188e-05/0.3842, allocations: 63.7 kB / 0.5215 GB, free: 30.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3842, allocations: 4 kB / 0.5215 GB, free: 30.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.919e-05/0.3842, allocations: 65.55 kB / 0.5216 GB, free: 30.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.3843, allocations: 35.39 kB / 0.5216 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3843, allocations: 0 / 0.5216 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.3843, allocations: 0 / 0.5216 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.3843, allocations: 1.062 kB / 0.5216 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.3843, allocations: 3.984 kB / 0.5216 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.768e-05/0.3843, allocations: 3.172 kB / 0.5216 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.3843, allocations: 1.125 kB / 0.5216 GB, free: 30.08 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 5.53e-05/0.3844, allocations: 141.5 kB / 0.5218 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.3844, allocations: 5.125 kB / 0.5218 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.568e-06/0.3844, allocations: 14.66 kB / 0.5218 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.71e-07/0.3844, allocations: 0 / 0.5218 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3844, allocations: 1.094 kB / 0.5218 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3844, allocations: 0 / 0.5218 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.744e-05/0.3845, allocations: 145.9 kB / 0.5219 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3845, allocations: 1.125 kB / 0.5219 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.3845, allocations: 0 / 0.5219 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3845, allocations: 9 kB / 0.5219 GB, free: 29.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-06/0.3845, allocations: 8 kB / 0.5219 GB, free: 29.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.3845, allocations: 1.219 kB / 0.5219 GB, free: 29.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3845, allocations: 0 / 0.5219 GB, free: 29.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.828e-05/0.3846, allocations: 93.34 kB / 0.522 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.536e-05/0.3846, allocations: 77.11 kB / 0.5221 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.3847, allocations: 5 kB / 0.5221 GB, free: 29.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.127e-06/0.3847, allocations: 4.172 kB / 0.5221 GB, free: 29.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.3847, allocations: 5.094 kB / 0.5221 GB, free: 29.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.3847, allocations: 1.062 kB / 0.5221 GB, free: 29.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.168e-05/0.3847, allocations: 75.28 kB / 0.5222 GB, free: 29.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3847, allocations: 0 / 0.5222 GB, free: 29.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004056/0.3851, allocations: 137.6 kB / 0.5223 GB, free: 29.4 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.0006641/0.3858, allocations: 373.6 kB / 0.5227 GB, free: 29.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.107e-05/0.3859, allocations: 58.36 kB / 0.5227 GB, free: 29.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3859, allocations: 0 / 0.5227 GB, free: 29.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.05e-05/0.3859, allocations: 55.52 kB / 0.5228 GB, free: 29.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001153/0.3861, allocations: 6.906 kB / 0.5228 GB, free: 29.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001434/0.3862, allocations: 87.62 kB / 0.5229 GB, free: 29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.3863, allocations: 0.6731 MB / 0.5235 GB, free: 28.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.407e-06/0.3863, allocations: 0 / 0.5235 GB, free: 28.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.964e-06/0.3863, allocations: 7.438 kB / 0.5235 GB, free: 28.29 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3863, allocations: 2.844 kB / 0.5235 GB, free: 28.29 MB / 378.7 MB Notification: Performance of Templates: time 0.006532/0.3929, allocations: 4.28 MB / 0.5277 GB, free: 27.84 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches