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.001289/0.001289, allocations: 79.75 kB / 21.19 MB, free: 3.375 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.001464/0.001464, allocations: 165 kB / 24.56 MB, free: 8 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 0.9357/0.9357, allocations: 177.1 MB / 205 MB, free: 5.617 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.2981/0.2981, allocations: 32.81 MB / 294.3 MB, free: 1.281 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 2.415e-06/2.415e-06, allocations: 0 / 376 MB, free: 4.711 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.08e-05/3.321e-05, allocations: 5.688 kB / 376 MB, free: 4.707 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00221/0.002243, allocations: 492.9 kB / 376.5 MB, free: 4.223 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003851/0.006095, allocations: 2.357 MB / 378.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.748e-05/0.006122, allocations: 0 / 378.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.08e-05/0.006143, allocations: 0 / 378.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.294e-06/0.00615, allocations: 4 kB / 378.8 MB, free: 1.84 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.002839/0.00899, allocations: 1.121 MB / 379.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.245e-05/0.009042, allocations: 4 kB / 379.9 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.313e-05/0.009075, allocations: 4 kB / 379.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.934e-05/0.009104, allocations: 0 / 379.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.346e-05/0.009128, allocations: 0 / 379.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.955e-06/0.009136, allocations: 0 / 379.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.01043, allocations: 0.9986 MB / 380.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.141e-05/0.01044, allocations: 3.984 kB / 380.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.434e-05/0.01046, allocations: 0 / 380.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006075/0.01107, allocations: 0.5339 MB / 381.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.01108, allocations: 0 / 381.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.01108, allocations: 4 kB / 381.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.01108, 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.0004395/0.01152, allocations: 473.1 kB / 381.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.01157, allocations: 8.031 kB / 382 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.546e-05/0.01161, allocations: 8.922 kB / 382 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.989e-05/0.01168, allocations: 108.6 kB / 382.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.0117, allocations: 384 / 382.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.01171, allocations: 384 / 382.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.01182, allocations: 63.95 kB / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.01183, allocations: 192 / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.01184, allocations: 384 / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.01185, allocations: 7.938 kB / 382.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.892e-05/0.01187, allocations: 29.7 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.212e-05/0.01196, allocations: 104.6 kB / 382.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.644e-05/0.012, allocations: 56.73 kB / 382.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.129e-05/0.01203, allocations: 37.38 kB / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.298e-06/0.01203, allocations: 0 / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.01207, allocations: 67.16 kB / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.332e-06/0.01207, allocations: 0 / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001668/0.01223, allocations: 114.8 kB / 382.5 MB, free: 13.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.01227, allocations: 85.17 kB / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.228e-05/0.01232, allocations: 142.2 kB / 382.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.277e-06/0.01232, allocations: 33.64 kB / 382.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.697e-05/0.01235, allocations: 126.9 kB / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.01237, allocations: 352 / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.01239, allocations: 19.38 kB / 382.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.0125, allocations: 496.1 kB / 383.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.252e-05/0.01252, allocations: 25.7 kB / 383.4 MB, free: 12.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.238e-05/0.01253, allocations: 25.7 kB / 383.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.356e-05/0.01258, allocations: 67.08 kB / 383.5 MB, free: 12.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.01258, allocations: 4.062 kB / 383.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.35e-05/0.01264, allocations: 93.06 kB / 383.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.01267, allocations: 33.7 kB / 383.7 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.01268, allocations: 3.984 kB / 383.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.01269, allocations: 0 / 383.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.947e-06/0.01269, allocations: 3.938 kB / 383.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.0127, allocations: 7.875 kB / 383.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.052e-05/0.01271, allocations: 0 / 383.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.01272, 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 6.967e-05/0.01279, allocations: 182.3 kB / 383.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.843e-06/0.01279, allocations: 8.031 kB / 383.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.151e-05/0.0128, allocations: 3 kB / 383.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.01281, allocations: 0 / 383.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.01281, allocations: 0 / 383.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.01281, allocations: 3.938 kB / 383.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.643e-05/0.01287, allocations: 112.6 kB / 384 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.01287, allocations: 4 kB / 384 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.413e-06/0.01287, allocations: 4 kB / 384 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.01287, allocations: 0 / 384 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.052e-06/0.01288, allocations: 0 / 384 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.51e-07/0.01288, allocations: 0 / 384 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01288, allocations: 4 kB / 384 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.428e-05/0.01298, allocations: 131.7 kB / 384.1 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-06/0.01298, allocations: 8 kB / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.013, allocations: 0 / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.739e-06/0.013, allocations: 0 / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.166e-05/0.01301, allocations: 0 / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.01302, allocations: 4 kB / 384.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.674e-05/0.01305, allocations: 123.1 kB / 384.3 MB, free: 12 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01305, allocations: 0 / 384.3 MB, free: 12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003633/0.01342, allocations: 155.5 kB / 384.4 MB, free: 11.85 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.0006176/0.01403, allocations: 435 kB / 384.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001187/0.01415, allocations: 118.5 kB / 384.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01415, allocations: 0 / 384.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.038e-05/0.01418, allocations: 92.78 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 9.983e-05/0.01428, 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.0002281/0.01451, allocations: 117.6 kB / 385.2 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.185e-05/0.01454, allocations: 51.36 kB / 385.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.611e-06/0.01455, allocations: 0 / 385.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.582e-05/0.01457, allocations: 12.44 kB / 385.2 MB, free: 10.93 MB / 362.7 MB Notification: Performance of SimCode: time 7.62e-07/0.01457, allocations: 0 / 385.2 MB, free: 10.93 MB / 362.7 MB Notification: Performance of Templates: time 0.006432/0.021, allocations: 4.733 MB / 390 MB, free: 6.195 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.2910038009285927]