Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 110.6 kB / 18.45 MB, free: 4.617 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.001136/0.001136, allocations: 187.1 kB / 19.38 MB, free: 3.695 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.356/1.356, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2105/0.2105, allocations: 44.19 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 67.84 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4248/0.426, allocations: 60.82 MB / 0.5195 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001486/0.4276, allocations: 487.1 kB / 0.52 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003339/0.4309, allocations: 2.276 MB / 0.5222 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.518e-05/0.431, allocations: 0 / 0.5222 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.136e-05/0.431, allocations: 1.094 kB / 0.5222 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.273e-06/0.431, allocations: 0 / 0.5222 GB, free: 1.711 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.002793/0.4338, allocations: 1.133 MB / 0.5233 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.912e-05/0.4339, allocations: 1.031 kB / 0.5233 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.871e-05/0.4339, allocations: 3.469 kB / 0.5233 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.442e-05/0.4339, allocations: 0 / 0.5233 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.118e-05/0.4339, allocations: 0.6094 kB / 0.5233 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.851e-06/0.434, allocations: 1.125 kB / 0.5233 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001629/0.4356, allocations: 0.995 MB / 0.5243 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.875e-06/0.4356, allocations: 4 kB / 0.5243 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.728e-05/0.4356, allocations: 1.938 kB / 0.5243 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005955/0.4362, allocations: 420.8 kB / 0.5247 GB, free: 0.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.4363, allocations: 0 / 0.5247 GB, free: 0.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4363, allocations: 1.688 kB / 0.5247 GB, free: 0.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.4363, allocations: 0 / 0.5247 GB, free: 0.582 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.0003892/0.4367, allocations: 423.8 kB / 0.5251 GB, free: 160 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.4367, allocations: 10.38 kB / 0.5251 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.768e-05/0.4368, allocations: 0.9375 kB / 0.5251 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.73e-05/0.4369, allocations: 161.6 kB / 0.5253 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.4369, allocations: 5.75 kB / 0.5253 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.4369, allocations: 8.25 kB / 0.5253 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.363e-05/0.437, allocations: 34.12 kB / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.437, allocations: 0 / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.437, allocations: 1.375 kB / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.437, allocations: 0 / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.301e-05/0.4371, allocations: 2.266 kB / 0.5253 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.4372, allocations: 148.4 kB / 0.5255 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.109e-05/0.4373, allocations: 24.5 kB / 0.5255 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.772e-05/0.4373, allocations: 10.83 kB / 0.5255 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.4373, allocations: 5.359 kB / 0.5255 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/0.4374, allocations: 60.86 kB / 0.5256 GB, free: 15.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.4374, allocations: 1.375 kB / 0.5256 GB, free: 15.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001919/0.4376, allocations: 64.86 kB / 0.5256 GB, free: 15.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.4376, allocations: 78.48 kB / 0.5257 GB, free: 15.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.483e-05/0.4377, allocations: 94.73 kB / 0.5258 GB, free: 15.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.4377, allocations: 25.7 kB / 0.5258 GB, free: 15.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.829e-05/0.4377, allocations: 81.52 kB / 0.5259 GB, free: 15.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.4377, allocations: 0 / 0.5259 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.869e-05/0.4378, allocations: 13.17 kB / 0.5259 GB, free: 15.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.4379, allocations: 311.4 kB / 0.5262 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.838e-05/0.4379, allocations: 10.08 kB / 0.5262 GB, free: 14.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.623e-06/0.4379, allocations: 5.312 kB / 0.5262 GB, free: 14.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.51e-05/0.438, allocations: 63.69 kB / 0.5263 GB, free: 14.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.438, allocations: 0.6094 kB / 0.5263 GB, free: 14.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.312e-05/0.4381, allocations: 60.02 kB / 0.5263 GB, free: 14.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/0.4381, allocations: 31.72 kB / 0.5264 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.4381, allocations: 5.312 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.4382, allocations: 0.5156 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.4382, allocations: 0 / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.4382, allocations: 2.078 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.684e-05/0.4382, allocations: 0 / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.4382, allocations: 5.406 kB / 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 0.0001012/0.4383, allocations: 138.1 kB / 0.5265 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.227e-06/0.4383, allocations: 5.875 kB / 0.5265 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.578e-05/0.4384, allocations: 11.62 kB / 0.5265 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.4384, allocations: 1.375 kB / 0.5265 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.4384, allocations: 3.938 kB / 0.5265 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.624e-05/0.4384, allocations: 81.56 kB / 0.5266 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.4384, allocations: 2.031 kB / 0.5266 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.001e-05/0.4384, allocations: 1.375 kB / 0.5266 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.456e-05/0.4385, allocations: 4.562 kB / 0.5266 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000124/0.4386, allocations: 194.7 kB / 0.5268 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001427/0.4387, allocations: 242 kB / 0.527 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.112e-05/0.4388, allocations: 3.406 kB / 0.527 GB, free: 14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.284e-05/0.4388, allocations: 75.28 kB / 0.5271 GB, free: 13.92 MB / 398.1 MB Notification: Performance of Backend: time 1.91e-07/0.4388, allocations: 4.062 kB / 0.5271 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.4399, allocations: 407.2 kB / 0.5275 GB, free: 13.7 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003796/0.4403, allocations: 0.5801 MB / 0.5281 GB, free: 13.06 MB / 398.1 MB Notification: Performance of Templates: time 0.008377/0.4486, allocations: 4.309 MB / 0.5323 GB, free: 11.02 MB / 398.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches