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.001422/0.001422, 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.001732/0.001732, allocations: 161 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 1.039/1.039, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] 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.2568/0.2568, allocations: 34.26 MB / 295.7 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 180] 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 2.174e-06/2.174e-06, allocations: 0 / 378 MB, free: 2.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.415e-05/3.633e-05, allocations: 5.688 kB / 378 MB, free: 2.656 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001857/0.001893, allocations: 488.9 kB / 378.5 MB, free: 2.176 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003758/0.005651, allocations: 2.357 MB / 380.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.281e-05/0.005684, allocations: 7.938 kB / 380.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.23e-05/0.005706, allocations: 0 / 380.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 7.955e-06/0.005714, allocations: 0 / 380.8 MB, free: 15.79 MB / 362.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.003175/0.008889, allocations: 1.117 MB / 382 MB, free: 14.67 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.274e-05/0.008952, allocations: 4 kB / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.947e-05/0.008991, allocations: 0 / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.464e-05/0.009026, allocations: 7.984 kB / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.831e-05/0.009054, allocations: 0 / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.014e-05/0.009064, allocations: 4 kB / 382 MB, free: 14.65 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001927/0.01099, allocations: 0.9909 MB / 383 MB, free: 13.66 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.102e-05/0.011, allocations: 0 / 383 MB, free: 13.66 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.288e-05/0.01103, allocations: 3.938 kB / 383 MB, free: 13.66 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009078/0.01193, allocations: 0.5377 MB / 383.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.01194, allocations: 0 / 383.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01194, allocations: 0 / 383.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.01195, allocations: 4 kB / 383.5 MB, free: 13.11 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.0005972/0.01254, allocations: 469.2 kB / 384 MB, free: 12.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.0126, allocations: 12.03 kB / 384 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.008e-05/0.01265, allocations: 0.9375 kB / 384 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.486e-05/0.01273, allocations: 104.6 kB / 384.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.01275, allocations: 384 / 384.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.01277, allocations: 4.375 kB / 384.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.01291, allocations: 51.97 kB / 384.1 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.01292, allocations: 4.125 kB / 384.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.01293, allocations: 4.359 kB / 384.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.01294, allocations: 15.88 kB / 384.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.75e-05/0.01297, allocations: 25.7 kB / 384.2 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001204/0.01309, allocations: 112.6 kB / 384.3 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.06e-05/0.01315, allocations: 48.77 kB / 384.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.777e-05/0.01318, allocations: 37.48 kB / 384.4 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.56e-06/0.01318, allocations: 0 / 384.4 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001255/0.01331, allocations: 63.08 kB / 384.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.01331, allocations: 0 / 384.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002142/0.01352, allocations: 118.8 kB / 384.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.01357, allocations: 85.05 kB / 384.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.377e-05/0.01364, allocations: 150.4 kB / 384.8 MB, free: 11.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.01365, allocations: 25.7 kB / 384.8 MB, free: 11.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.412e-05/0.01369, allocations: 126.9 kB / 384.9 MB, free: 11.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.01372, allocations: 352 / 384.9 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.01375, allocations: 19.38 kB / 385 MB, free: 11.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.0139, allocations: 492.1 kB / 385.4 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.932e-05/0.01393, allocations: 29.7 kB / 385.5 MB, free: 10.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.745e-05/0.01394, allocations: 29.7 kB / 385.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.159e-05/0.014, allocations: 67.03 kB / 385.6 MB, free: 10.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.01401, allocations: 0 / 385.6 MB, free: 10.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001011/0.01411, allocations: 93.11 kB / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.01415, allocations: 33.7 kB / 385.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.01416, allocations: 0 / 385.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.01418, allocations: 0 / 385.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.919e-06/0.01418, allocations: 0 / 385.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.01419, allocations: 3.938 kB / 385.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.187e-05/0.01421, allocations: 12 kB / 385.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.01422, allocations: 3.984 kB / 385.7 MB, free: 10.61 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 9.843e-05/0.01432, allocations: 178.3 kB / 385.9 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.375e-05/0.01433, allocations: 8.031 kB / 385.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.579e-05/0.01435, allocations: 3 kB / 385.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.01435, allocations: 0 / 385.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.01436, allocations: 0 / 385.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.01436, allocations: 3.938 kB / 385.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.738e-05/0.01445, allocations: 116.6 kB / 386 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.01445, allocations: 3.938 kB / 386 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.01445, allocations: 3.938 kB / 386 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.01445, allocations: 0 / 386 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-06/0.01446, allocations: 0 / 386 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.01446, allocations: 0 / 386 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.01447, allocations: 4 kB / 386 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005397/0.01501, allocations: 135.8 kB / 386.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.016e-06/0.01501, allocations: 3.984 kB / 386.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.01503, allocations: 0 / 386.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.07e-05/0.01504, allocations: 0 / 386.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.486e-05/0.01506, allocations: 4 kB / 386.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.01506, allocations: 0 / 386.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.101e-05/0.0151, allocations: 123.1 kB / 386.3 MB, free: 9.953 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0151, allocations: 0 / 386.3 MB, free: 9.953 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000546/0.01565, allocations: 163.5 kB / 386.4 MB, free: 9.793 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.0009048/0.01656, allocations: 417.7 kB / 386.9 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.01669, allocations: 130.4 kB / 387 MB, free: 9.227 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01669, allocations: 0 / 387 MB, free: 9.227 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.441e-05/0.01674, allocations: 88.8 kB / 387.1 MB, free: 9.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001503/0.01689, allocations: 9.703 kB / 387.1 MB, free: 9.109 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002516/0.01714, allocations: 113.6 kB / 387.2 MB, free: 8.961 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.953e-05/0.01718, allocations: 51.36 kB / 387.2 MB, free: 8.891 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.963e-06/0.01718, allocations: 0 / 387.2 MB, free: 8.891 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.878e-05/0.0172, allocations: 12.5 kB / 387.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.0172, allocations: 0 / 387.2 MB, free: 8.879 MB / 362.7 MB Notification: Performance of Templates: time 0.01015/0.02735, allocations: 4.727 MB / 392 MB, free: 4.148 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] 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","",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.458133975043893]