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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 110 kB / 21.23 MB, free: 0.6602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002123/0.002123, allocations: 186.4 kB / 24.51 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2311/0.2311, allocations: 44.91 MB / 353.5 MB, free: 11.82 MB / 286.1 MB " [Timeout remaining time 179] 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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 71.88 kB / 497.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4358/0.4378, allocations: 64.3 MB / 0.5488 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00188/0.4397, allocations: 479.4 kB / 0.5493 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004299/0.444, allocations: 2.32 MB / 0.5515 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.981e-05/0.444, allocations: 0 / 0.5515 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.419e-05/0.444, allocations: 1.375 kB / 0.5515 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.304e-06/0.444, allocations: 0 / 0.5515 GB, free: 10.98 MB / 398.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.003306/0.4473, allocations: 1.146 MB / 0.5526 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.975e-05/0.4474, allocations: 1.125 kB / 0.5526 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.667e-05/0.4474, allocations: 1.156 kB / 0.5526 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.737e-05/0.4474, allocations: 1.188 kB / 0.5526 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.504e-05/0.4475, allocations: 1.188 kB / 0.5526 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.925e-06/0.4475, allocations: 0 / 0.5526 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001971/0.4494, allocations: 0.9979 MB / 0.5536 GB, free: 9.707 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.4495, allocations: 0 / 0.5536 GB, free: 9.707 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.963e-05/0.4495, allocations: 8.938 kB / 0.5536 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007775/0.4503, allocations: 416.7 kB / 0.554 GB, free: 9.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4503, allocations: 1.062 kB / 0.554 GB, free: 9.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4503, allocations: 0 / 0.554 GB, free: 9.461 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.4503, allocations: 0 / 0.554 GB, free: 9.461 MB / 398.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.0005904/0.4509, allocations: 356.6 kB / 0.5544 GB, free: 9.113 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.4509, allocations: 9.484 kB / 0.5544 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.123e-05/0.451, allocations: 2.062 kB / 0.5544 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/0.4511, allocations: 111.7 kB / 0.5545 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.4511, allocations: 5.469 kB / 0.5545 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.4511, allocations: 384 / 0.5545 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.4512, allocations: 40.19 kB / 0.5545 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.4513, allocations: 1.125 kB / 0.5545 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.4513, allocations: 0 / 0.5545 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.4513, allocations: 1.188 kB / 0.5545 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.315e-05/0.4513, allocations: 1.188 kB / 0.5545 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001646/0.4515, allocations: 113.9 kB / 0.5546 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.104e-05/0.4515, allocations: 28.77 kB / 0.5547 GB, free: 8.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.116e-05/0.4516, allocations: 9.969 kB / 0.5547 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.4516, allocations: 3.938 kB / 0.5547 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.282e-05/0.4516, allocations: 61.23 kB / 0.5547 GB, free: 8.656 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.4516, allocations: 1.438 kB / 0.5547 GB, free: 8.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002151/0.4519, allocations: 57.78 kB / 0.5548 GB, free: 8.594 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.4519, allocations: 78.17 kB / 0.5549 GB, free: 8.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.132e-05/0.452, allocations: 106.9 kB / 0.555 GB, free: 8.387 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.452, allocations: 25.7 kB / 0.555 GB, free: 8.355 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.943e-05/0.4521, allocations: 80.14 kB / 0.5551 GB, free: 8.273 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.4521, allocations: 1.062 kB / 0.5551 GB, free: 8.273 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.4521, allocations: 11.97 kB / 0.5551 GB, free: 8.258 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.4523, allocations: 311.9 kB / 0.5554 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.115e-05/0.4523, allocations: 0 / 0.5554 GB, free: 7.945 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.075e-05/0.4523, allocations: 6.156 kB / 0.5554 GB, free: 7.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.255e-05/0.4524, allocations: 67.05 kB / 0.5554 GB, free: 7.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4524, allocations: 0 / 0.5554 GB, free: 7.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.277e-05/0.4525, allocations: 63.11 kB / 0.5555 GB, free: 7.797 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.4525, allocations: 34.95 kB / 0.5555 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.4525, allocations: 0 / 0.5555 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.4525, allocations: 1.125 kB / 0.5555 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.71e-07/0.4525, allocations: 0 / 0.5555 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.4525, allocations: 0 / 0.5555 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.4525, allocations: 5 kB / 0.5555 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.4526, allocations: 5.219 kB / 0.5556 GB, free: 7.754 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.0001235/0.4527, allocations: 141.7 kB / 0.5557 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.315e-05/0.4527, allocations: 9.172 kB / 0.5557 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.863e-05/0.4527, allocations: 10.95 kB / 0.5557 GB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.4527, allocations: 3.938 kB / 0.5557 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4527, allocations: 1.156 kB / 0.5557 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.4527, allocations: 0 / 0.5557 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.4528, allocations: 119.2 kB / 0.5558 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4528, allocations: 3.984 kB / 0.5558 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.845e-06/0.4528, allocations: 7.984 kB / 0.5558 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.4528, allocations: 5.062 kB / 0.5558 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.4529, allocations: 0 / 0.5558 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.4529, allocations: 1.094 kB / 0.5558 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.4529, allocations: 0 / 0.5558 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/0.453, allocations: 89.64 kB / 0.5559 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-06/0.453, allocations: 1.062 kB / 0.5559 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.538e-05/0.453, allocations: 5.031 kB / 0.5559 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.937e-06/0.453, allocations: 5.188 kB / 0.5559 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.262e-05/0.453, allocations: 1.062 kB / 0.5559 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.453, allocations: 0 / 0.5559 GB, free: 7.293 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.06e-05/0.4531, allocations: 76.41 kB / 0.556 GB, free: 7.219 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4531, allocations: 0 / 0.556 GB, free: 7.219 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005641/0.4536, allocations: 151.1 kB / 0.5562 GB, free: 7.164 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.0009535/0.4546, allocations: 370.6 kB / 0.5565 GB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.4547, allocations: 56.56 kB / 0.5566 GB, free: 6.895 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4547, allocations: 0 / 0.5566 GB, free: 6.895 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.32e-05/0.4548, allocations: 59.55 kB / 0.5566 GB, free: 6.828 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001448/0.4549, allocations: 13.16 kB / 0.5566 GB, free: 6.816 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002524/0.4552, allocations: 73.08 kB / 0.5567 GB, free: 6.727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.4555, allocations: 0.6727 MB / 0.5574 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.488e-06/0.4556, allocations: 1.5 kB / 0.5574 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.854e-05/0.4556, allocations: 8.719 kB / 0.5574 GB, free: 6.02 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4556, allocations: 0 / 0.5574 GB, free: 6.02 MB / 398.1 MB Notification: Performance of Templates: time 0.009824/0.4654, allocations: 4.304 MB / 0.5616 GB, free: 1.945 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 5.715532716363668]