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.001393/0.001393, allocations: 108.8 kB / 17.77 MB, free: 5.387 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.001495/0.001495, allocations: 180.9 kB / 18.7 MB, free: 4.469 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.373/1.373, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2513/0.2513, allocations: 44.19 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 59.91 kB / 470.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4743/0.4756, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001642/0.4773, allocations: 491.6 kB / 0.5193 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003286/0.4806, allocations: 2.276 MB / 0.5215 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.023e-05/0.4806, allocations: 0 / 0.5215 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.865e-05/0.4806, allocations: 1.438 kB / 0.5215 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.044e-06/0.4807, allocations: 4 kB / 0.5216 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.002826/0.4835, allocations: 1.132 MB / 0.5227 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.72e-05/0.4836, allocations: 2.969 kB / 0.5227 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.61e-05/0.4836, allocations: 1.891 kB / 0.5227 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.563e-05/0.4836, allocations: 0 / 0.5227 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.139e-05/0.4837, allocations: 5.172 kB / 0.5227 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.652e-06/0.4837, allocations: 4 kB / 0.5227 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.4854, allocations: 0.9921 MB / 0.5236 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.017e-06/0.4854, allocations: 0 / 0.5236 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.185e-05/0.4855, allocations: 1.75 kB / 0.5236 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006484/0.4861, allocations: 421.3 kB / 0.524 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.4861, allocations: 0 / 0.524 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4861, allocations: 0 / 0.524 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.4861, allocations: 1.375 kB / 0.524 GB, free: 0.5938 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.0004627/0.4866, allocations: 435.3 kB / 0.5245 GB, free: 160 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.4867, allocations: 10.23 kB / 0.5245 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.632e-05/0.4867, allocations: 0.9375 kB / 0.5245 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.4868, allocations: 163.2 kB / 0.5246 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.4868, allocations: 384 / 0.5246 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.4869, allocations: 5.688 kB / 0.5246 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.487, allocations: 36.55 kB / 0.5247 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.487, allocations: 1.375 kB / 0.5247 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.487, allocations: 0 / 0.5247 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.487, allocations: 0.5625 kB / 0.5247 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.02e-05/0.487, allocations: 5.375 kB / 0.5247 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/0.4872, allocations: 149 kB / 0.5248 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.49e-05/0.4872, allocations: 17.98 kB / 0.5248 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.224e-05/0.4873, allocations: 6.234 kB / 0.5248 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-06/0.4873, allocations: 4.453 kB / 0.5248 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.4873, allocations: 62.09 kB / 0.5249 GB, free: 15.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.4873, allocations: 4 kB / 0.5249 GB, free: 15.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000209/0.4876, allocations: 66.09 kB / 0.525 GB, free: 15.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.4876, allocations: 77.62 kB / 0.525 GB, free: 15.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.877e-05/0.4877, allocations: 89.86 kB / 0.5251 GB, free: 15.35 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.4877, allocations: 27.08 kB / 0.5252 GB, free: 15.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.495e-05/0.4877, allocations: 80.75 kB / 0.5252 GB, free: 15.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.772e-05/0.4878, allocations: 1.375 kB / 0.5252 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.4878, allocations: 11.75 kB / 0.5252 GB, free: 15.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.488, allocations: 321 kB / 0.5255 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.353e-05/0.488, allocations: 4 kB / 0.5256 GB, free: 14.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.969e-06/0.488, allocations: 5.828 kB / 0.5256 GB, free: 14.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.595e-05/0.488, allocations: 61.05 kB / 0.5256 GB, free: 14.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.4881, allocations: 0.5625 kB / 0.5256 GB, free: 14.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.374e-05/0.4881, allocations: 64.19 kB / 0.5257 GB, free: 14.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/0.4882, allocations: 35.7 kB / 0.5257 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.4882, allocations: 0 / 0.5257 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.4882, allocations: 4.094 kB / 0.5257 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.244e-06/0.4882, allocations: 1.938 kB / 0.5257 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.4883, allocations: 0 / 0.5257 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.277e-05/0.4883, allocations: 6.031 kB / 0.5257 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.4883, allocations: 0 / 0.5257 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.0001122/0.4884, allocations: 135.6 kB / 0.5259 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.4884, allocations: 9.266 kB / 0.5259 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.217e-05/0.4884, allocations: 11.72 kB / 0.5259 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.4885, allocations: 0 / 0.5259 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4885, allocations: 9.312 kB / 0.5259 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4885, allocations: 0.6094 kB / 0.5259 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.415e-05/0.4886, allocations: 145.3 kB / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.4886, allocations: 0 / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.4886, allocations: 0 / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.4886, allocations: 5.969 kB / 0.526 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.4886, allocations: 0 / 0.526 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.4886, allocations: 1.375 kB / 0.526 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4886, allocations: 0.5625 kB / 0.526 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.99e-05/0.4887, allocations: 97.02 kB / 0.5261 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.4888, allocations: 77.91 kB / 0.5262 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.4888, allocations: 5.312 kB / 0.5262 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.808e-06/0.4888, allocations: 1.375 kB / 0.5262 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.922e-05/0.4888, allocations: 0.5625 kB / 0.5262 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.4888, allocations: 5.375 kB / 0.5262 GB, free: 14.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.994e-05/0.4889, allocations: 76.03 kB / 0.5263 GB, free: 14.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.845e-06/0.4889, allocations: 0 / 0.5263 GB, free: 14.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004309/0.4893, allocations: 153.1 kB / 0.5264 GB, free: 14.02 MB / 398.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.0007598/0.4901, allocations: 367.4 kB / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001072/0.4902, allocations: 65.94 kB / 0.5268 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.4902, allocations: 0 / 0.5268 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.927e-05/0.4903, allocations: 56.09 kB / 0.5269 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.4904, allocations: 2.188 kB / 0.5269 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001976/0.4906, allocations: 68.77 kB / 0.527 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.4909, allocations: 0.6757 MB / 0.5276 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.352e-06/0.4909, allocations: 0 / 0.5276 GB, free: 12.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.297e-05/0.4909, allocations: 12.69 kB / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4909, allocations: 0 / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of Templates: time 0.009315/0.5002, allocations: 4.301 MB / 0.5318 GB, free: 10.86 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches