Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 88.31 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00205/0.00205, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.504/1.504, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.366/0.366, allocations: 34.26 MB / 295.3 MB, free: 0.6719 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 377.2 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.112e-05/3.299e-05, allocations: 2.312 kB / 377.2 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001764/0.001797, allocations: 481.1 kB / 377.7 MB, free: 2.52 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004735/0.006532, allocations: 2.287 MB / 380 MB, free: 216 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.574e-05/0.006558, allocations: 7.875 kB / 380 MB, free: 208 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.108e-05/0.006569, allocations: 0 / 380 MB, free: 208 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.603e-06/0.006576, allocations: 0 / 380 MB, free: 208 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.003628/0.0102, allocations: 1.113 MB / 381.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.25e-05/0.01027, allocations: 3.984 kB / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.867e-05/0.01032, allocations: 4 kB / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.262e-05/0.01035, allocations: 0 / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.7e-05/0.01037, allocations: 0 / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.776e-06/0.01038, allocations: 0 / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002192/0.01258, allocations: 0.9753 MB / 382.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.161e-05/0.01259, allocations: 4 kB / 382.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.427e-05/0.01262, allocations: 7.938 kB / 382.1 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000994/0.01362, allocations: 0.5338 MB / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.01362, allocations: 0 / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.01362, allocations: 0 / 382.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.01363, allocations: 0 / 382.7 MB, free: 13.55 MB / 362.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.0005443/0.01417, allocations: 367.2 kB / 383 MB, free: 13.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.01421, allocations: 12.03 kB / 383 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.01427, allocations: 0.9375 kB / 383 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.01438, allocations: 101.8 kB / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.01439, allocations: 384 / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-06/0.0144, allocations: 8.375 kB / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.01452, allocations: 55.95 kB / 383.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.01453, allocations: 192 / 383.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.01454, allocations: 4.375 kB / 383.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.01455, allocations: 7.875 kB / 383.2 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.603e-05/0.01458, allocations: 25.7 kB / 383.2 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001411/0.01472, allocations: 105.3 kB / 383.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.129e-05/0.01479, allocations: 40.28 kB / 383.4 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.976e-05/0.01483, allocations: 38.64 kB / 383.4 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/0.01484, allocations: 0 / 383.4 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.653e-05/0.0149, allocations: 60.27 kB / 383.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.0149, allocations: 0 / 383.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002462/0.01515, allocations: 122.7 kB / 383.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.01522, allocations: 89.03 kB / 383.7 MB, free: 12.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.046e-05/0.01528, allocations: 89.86 kB / 383.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.0153, allocations: 25.7 kB / 383.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.083e-05/0.01534, allocations: 80.14 kB / 383.9 MB, free: 12.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.01535, allocations: 0 / 383.9 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.663e-05/0.01539, allocations: 17.72 kB / 383.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.01555, allocations: 310.8 kB / 384.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.637e-05/0.01558, allocations: 29.83 kB / 384.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.274e-05/0.0156, allocations: 29.7 kB / 384.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.886e-05/0.01568, allocations: 64.25 kB / 384.3 MB, free: 11.65 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.01568, allocations: 0 / 384.3 MB, free: 11.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.681e-05/0.01578, allocations: 93.05 kB / 384.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.01582, allocations: 29.7 kB / 384.4 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.01582, allocations: 0 / 384.4 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.01584, allocations: 0 / 384.4 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.236e-06/0.01584, allocations: 3.984 kB / 384.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.01585, allocations: 8.031 kB / 384.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.418e-05/0.01586, allocations: 4 kB / 384.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.01587, allocations: 0 / 384.4 MB, free: 11.49 MB / 362.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 0.000105/0.01597, allocations: 135.5 kB / 384.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.111e-05/0.01599, allocations: 3.953 kB / 384.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.243e-05/0.016, allocations: 10.98 kB / 384.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.016, allocations: 0 / 384.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.016, allocations: 0 / 384.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.01601, allocations: 3.938 kB / 384.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.01611, allocations: 105.3 kB / 384.7 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.01611, allocations: 4 kB / 384.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.01611, allocations: 3.938 kB / 384.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.01611, allocations: 0 / 384.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.01612, allocations: 0 / 384.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.01612, allocations: 0 / 384.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.01612, allocations: 4 kB / 384.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.01626, allocations: 124.4 kB / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.55e-06/0.01626, allocations: 0 / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.01628, allocations: 0 / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.318e-05/0.01629, allocations: 4 kB / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.629e-05/0.01631, allocations: 0 / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.01631, allocations: 4.031 kB / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.515e-05/0.01635, allocations: 79.22 kB / 384.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01635, allocations: 0 / 384.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006321/0.01699, allocations: 159.5 kB / 385.1 MB, free: 10.79 MB / 362.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.0009365/0.01792, allocations: 427 kB / 385.5 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001441/0.01807, allocations: 106.8 kB / 385.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.01807, allocations: 0 / 385.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.642e-05/0.01814, allocations: 85.05 kB / 385.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.01827, allocations: 7.984 kB / 385.7 MB, free: 10.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002498/0.01852, allocations: 108 kB / 385.8 MB, free: 9.992 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.791e-05/0.01858, allocations: 51.48 kB / 385.8 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.492e-06/0.01859, allocations: 8 kB / 385.8 MB, free: 9.914 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.825e-05/0.0186, allocations: 8.5 kB / 385.8 MB, free: 9.906 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.0186, allocations: 0 / 385.8 MB, free: 9.906 MB / 362.7 MB Notification: Performance of Templates: time 0.0103/0.0289, allocations: 4.717 MB / 390.6 MB, free: 5.188 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.980816786992364]