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.001081/0.001081, allocations: 113.9 kB / 18.46 MB, free: 4.609 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.001245/0.001245, allocations: 186.1 kB / 19.39 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 243.1 MB, free: 15.14 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.2161/0.2161, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 59.91 kB / 471.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4098/0.4114, allocations: 60.82 MB / 0.5195 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001733/0.4131, allocations: 486.3 kB / 0.52 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003415/0.4166, allocations: 2.276 MB / 0.5222 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.975e-05/0.4166, allocations: 0 / 0.5222 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.4166, allocations: 0 / 0.5222 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.412e-06/0.4166, allocations: 0 / 0.5222 GB, free: 1.719 MB / 382.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.002688/0.4193, allocations: 1.137 MB / 0.5233 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.722e-05/0.4194, allocations: 1.906 kB / 0.5233 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.146e-05/0.4194, allocations: 1.844 kB / 0.5233 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.935e-05/0.4195, allocations: 5.406 kB / 0.5233 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.141e-05/0.4195, allocations: 0 / 0.5233 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-06/0.4195, allocations: 0 / 0.5233 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001698/0.4212, allocations: 0.9958 MB / 0.5243 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.668e-06/0.4212, allocations: 3.984 kB / 0.5243 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.921e-05/0.4213, allocations: 1.766 kB / 0.5243 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006095/0.4219, allocations: 412.8 kB / 0.5247 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.4219, allocations: 2.031 kB / 0.5247 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4219, allocations: 0 / 0.5247 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.4219, allocations: 0 / 0.5247 GB, free: 0.5898 MB / 382.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.000401/0.4223, allocations: 424.7 kB / 0.5251 GB, free: 168 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.4224, allocations: 8.5 kB / 0.5251 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.76e-05/0.4224, allocations: 1.734 kB / 0.5251 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.338e-05/0.4225, allocations: 174.2 kB / 0.5253 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.4225, allocations: 384 / 0.5253 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.4225, allocations: 5.625 kB / 0.5253 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.927e-05/0.4226, allocations: 41.58 kB / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.4227, allocations: 1.094 kB / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.4227, allocations: 0 / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.4227, allocations: 0 / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.944e-05/0.4227, allocations: 2.906 kB / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001507/0.4229, allocations: 148.1 kB / 0.5255 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.938e-05/0.4229, allocations: 24.47 kB / 0.5255 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.639e-05/0.4229, allocations: 7.797 kB / 0.5255 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-06/0.4229, allocations: 0 / 0.5255 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.153e-05/0.423, allocations: 65.98 kB / 0.5256 GB, free: 15.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.183e-06/0.423, allocations: 0 / 0.5256 GB, free: 15.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001856/0.4232, allocations: 61.05 kB / 0.5256 GB, free: 15.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.4233, allocations: 82.83 kB / 0.5257 GB, free: 15.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.804e-05/0.4233, allocations: 90.52 kB / 0.5258 GB, free: 15.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.4233, allocations: 26.77 kB / 0.5258 GB, free: 15.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.4234, allocations: 80.14 kB / 0.5259 GB, free: 15.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.958e-05/0.4234, allocations: 1.406 kB / 0.5259 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.4234, allocations: 19.47 kB / 0.5259 GB, free: 15.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.4236, allocations: 312.8 kB / 0.5262 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.15e-05/0.4236, allocations: 1.734 kB / 0.5262 GB, free: 14.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.695e-06/0.4236, allocations: 9.594 kB / 0.5262 GB, free: 14.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.331e-05/0.4237, allocations: 60.38 kB / 0.5263 GB, free: 14.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.4237, allocations: 0 / 0.5263 GB, free: 14.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.067e-05/0.4237, allocations: 63.27 kB / 0.5264 GB, free: 14.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.822e-05/0.4238, allocations: 31.69 kB / 0.5264 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.4238, allocations: 5.812 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.4238, allocations: 0 / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.4238, allocations: 1.281 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.4238, allocations: 0 / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.923e-05/0.4239, allocations: 10.34 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.4239, allocations: 0 / 0.5264 GB, free: 14.71 MB / 398.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 9.093e-05/0.424, allocations: 134.9 kB / 0.5265 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.375e-06/0.424, allocations: 2.078 kB / 0.5265 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.419e-05/0.424, allocations: 11.02 kB / 0.5265 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.424, allocations: 0.6094 kB / 0.5265 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.424, allocations: 5.656 kB / 0.5265 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-05/0.4241, allocations: 81.52 kB / 0.5266 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.4241, allocations: 1.656 kB / 0.5266 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.4241, allocations: 4 kB / 0.5266 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.383e-05/0.4241, allocations: 1.641 kB / 0.5266 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001308/0.4242, allocations: 193.1 kB / 0.5268 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001626/0.4244, allocations: 243.4 kB / 0.527 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.85e-05/0.4244, allocations: 2.109 kB / 0.527 GB, free: 14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.905e-05/0.4245, allocations: 80.75 kB / 0.5271 GB, free: 13.92 MB / 398.1 MB Notification: Performance of Backend: time 3.41e-07/0.4245, allocations: 0 / 0.5271 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.4255, allocations: 406.7 kB / 0.5275 GB, free: 13.7 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003642/0.4259, allocations: 0.5818 MB / 0.5281 GB, free: 13.07 MB / 398.1 MB Notification: Performance of Templates: time 0.008484/0.4344, allocations: 4.305 MB / 0.5323 GB, free: 11.03 MB / 398.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