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.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.001549/0.001549, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.001694/0.001694, allocations: 165 kB / 24.56 MB, free: 12 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.01/1.01, allocations: 177.1 MB / 205 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] 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.31/0.31, allocations: 32.8 MB / 294.3 MB, free: 1.254 MB / 266.7 MB " [Timeout remaining time 180] 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.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.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 3.256e-06/3.256e-06, allocations: 0 / 376 MB, free: 4.703 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.256e-05/4.582e-05, allocations: 2.312 kB / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001883/0.001929, allocations: 492.9 kB / 376.5 MB, free: 4.215 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003872/0.005801, allocations: 2.357 MB / 378.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.152e-05/0.005832, allocations: 0 / 378.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.433e-05/0.005857, allocations: 0 / 378.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.658e-06/0.005866, allocations: 0 / 378.8 MB, free: 1.836 MB / 346.7 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.003324/0.009191, allocations: 1.121 MB / 379.9 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.459e-05/0.009265, allocations: 3.984 kB / 379.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.38e-05/0.009309, allocations: 4 kB / 379.9 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.327e-05/0.009342, allocations: 3.938 kB / 379.9 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.238e-05/0.009375, allocations: 0 / 379.9 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.207e-06/0.009384, allocations: 0 / 379.9 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001915/0.0113, allocations: 0.9948 MB / 380.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.27e-05/0.01131, allocations: 4 kB / 380.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.01134, allocations: 4 kB / 381 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008953/0.01224, allocations: 0.5338 MB / 381.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.01225, allocations: 3.984 kB / 381.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.01225, allocations: 0 / 381.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.01226, allocations: 0 / 381.5 MB, free: 15.16 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.0005612/0.01282, allocations: 469.2 kB / 381.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.01287, allocations: 8.031 kB / 382 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.952e-05/0.01294, allocations: 4.938 kB / 382 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.191e-05/0.01302, allocations: 104.6 kB / 382.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.01303, allocations: 4.312 kB / 382.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.01305, allocations: 384 / 382.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001204/0.01317, allocations: 63.91 kB / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.01317, allocations: 192 / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.01318, allocations: 384 / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.0132, allocations: 7.922 kB / 382.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.817e-05/0.01323, allocations: 33.69 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001194/0.01335, allocations: 108.6 kB / 382.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.172e-05/0.01342, allocations: 52.8 kB / 382.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.709e-05/0.01344, allocations: 33.39 kB / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.034e-06/0.01345, allocations: 3.938 kB / 382.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.437e-05/0.01351, allocations: 63.16 kB / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.543e-06/0.01351, allocations: 4 kB / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002594/0.01377, allocations: 118.8 kB / 382.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.01383, allocations: 81.05 kB / 382.6 MB, free: 13.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.737e-05/0.01389, allocations: 142.2 kB / 382.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.01391, allocations: 25.7 kB / 382.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.904e-05/0.01395, allocations: 130.9 kB / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.01397, allocations: 352 / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-05/0.014, allocations: 19.36 kB / 382.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.01418, allocations: 0.4884 MB / 383.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.099e-05/0.01421, allocations: 25.83 kB / 383.4 MB, free: 12.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.195e-05/0.01423, allocations: 33.64 kB / 383.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.96e-05/0.0143, allocations: 63.09 kB / 383.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.01431, allocations: 0 / 383.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001078/0.01441, allocations: 97.05 kB / 383.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/0.01445, allocations: 33.7 kB / 383.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.01446, allocations: 0 / 383.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.01448, allocations: 0 / 383.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.12e-06/0.01448, allocations: 0 / 383.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.01449, allocations: 3.938 kB / 383.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.182e-05/0.01451, allocations: 4.094 kB / 383.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.01452, allocations: 0 / 383.7 MB, free: 12.66 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.0001155/0.01464, allocations: 190.2 kB / 383.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-06/0.01464, allocations: 0 / 383.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.333e-05/0.01466, allocations: 7 kB / 383.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.01466, allocations: 3.938 kB / 383.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.01467, allocations: 0 / 383.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.01467, allocations: 3.938 kB / 383.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.667e-05/0.01476, allocations: 104.6 kB / 384 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.01476, allocations: 0 / 384 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.223e-06/0.01476, allocations: 8 kB / 384 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01476, allocations: 0 / 384 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.01478, allocations: 7.984 kB / 384 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.01478, allocations: 0 / 384 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.01478, allocations: 0 / 384 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.01492, allocations: 127.8 kB / 384.1 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.136e-05/0.01493, allocations: 7.984 kB / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.01495, allocations: 0 / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.073e-05/0.01496, allocations: 0 / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.118e-05/0.01499, allocations: 3.938 kB / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.01499, allocations: 4 kB / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.635e-05/0.01504, allocations: 127.2 kB / 384.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01504, allocations: 0 / 384.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005569/0.01559, allocations: 159.5 kB / 384.4 MB, free: 11.84 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.000929/0.01652, allocations: 425.2 kB / 384.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001378/0.01666, allocations: 126.5 kB / 385 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01666, allocations: 0 / 385 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.166e-05/0.0167, allocations: 88.8 kB / 385 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.01685, allocations: 4 kB / 385 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002388/0.01709, allocations: 113.6 kB / 385.2 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.492e-05/0.01712, allocations: 51.36 kB / 385.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.572e-06/0.01713, allocations: 4.125 kB / 385.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.803e-05/0.01715, allocations: 8.5 kB / 385.2 MB, free: 10.93 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.01715, allocations: 3.938 kB / 385.2 MB, free: 10.93 MB / 362.7 MB Notification: Performance of Templates: time 0.01313/0.03028, allocations: 7.489 MB / 392.7 MB, free: 3.434 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6249310029670596]