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.00146/0.00146, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001562/0.001562, allocations: 161.7 kB / 24.26 MB, free: 176 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.513/1.513, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 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.3328/0.3328, allocations: 32.8 MB / 293.9 MB, free: 1.207 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 1.212e-06/1.212e-06, allocations: 0 / 375.2 MB, free: 5.039 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.234e-05/3.355e-05, allocations: 6.25 kB / 375.2 MB, free: 5.031 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001676/0.00171, allocations: 491.7 kB / 375.7 MB, free: 4.551 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004382/0.006091, allocations: 2.287 MB / 378 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.655e-05/0.006118, allocations: 0 / 378 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.006131, allocations: 0 / 378 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.34e-06/0.006136, allocations: 0 / 378 MB, free: 2.242 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.003635/0.00977, allocations: 1.109 MB / 379.1 MB, free: 1.129 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.458e-05/0.009845, allocations: 0 / 379.1 MB, free: 1.129 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.249e-05/0.009897, allocations: 0 / 379.1 MB, free: 1.129 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.737e-05/0.009945, allocations: 7.984 kB / 379.1 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.269e-05/0.009978, allocations: 0 / 379.1 MB, free: 1.121 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.009989, allocations: 3.938 kB / 379.1 MB, free: 1.117 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002193/0.01218, allocations: 0.9791 MB / 380.1 MB, free: 140 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.03e-05/0.01219, allocations: 4 kB / 380.1 MB, free: 136 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.512e-05/0.01222, allocations: 0 / 380.1 MB, free: 136 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.01332, allocations: 0.5338 MB / 380.6 MB, free: 15.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.01333, allocations: 3.938 kB / 380.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.01333, allocations: 0 / 380.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.01334, allocations: 0 / 380.6 MB, free: 15.59 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.0006328/0.01397, allocations: 367.2 kB / 381 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.01402, allocations: 12.03 kB / 381 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.139e-05/0.01409, allocations: 4.938 kB / 381 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.01419, allocations: 105.8 kB / 381.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.01421, allocations: 4.375 kB / 381.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.01422, allocations: 4.375 kB / 381.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.01435, allocations: 59.91 kB / 381.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.01436, allocations: 192 / 381.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.01438, allocations: 4.375 kB / 381.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.01438, allocations: 3.938 kB / 381.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.943e-05/0.01442, allocations: 25.7 kB / 381.2 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.01458, allocations: 101.3 kB / 381.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.185e-05/0.01465, allocations: 40.28 kB / 381.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.253e-05/0.01468, allocations: 30.66 kB / 381.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.01469, allocations: 12 kB / 381.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.997e-05/0.01475, allocations: 60.2 kB / 381.4 MB, free: 14.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.01475, allocations: 0 / 381.4 MB, free: 14.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002772/0.01503, allocations: 114.8 kB / 381.5 MB, free: 14.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/0.01511, allocations: 85.05 kB / 381.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.608e-05/0.01518, allocations: 93.86 kB / 381.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.01519, allocations: 25.7 kB / 381.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.421e-05/0.01524, allocations: 80.14 kB / 381.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.01526, allocations: 0 / 381.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.237e-05/0.01529, allocations: 13.72 kB / 381.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.01545, allocations: 315 kB / 382.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.627e-05/0.01548, allocations: 29.7 kB / 382.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.306e-05/0.01551, allocations: 33.64 kB / 382.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.102e-05/0.01558, allocations: 64.27 kB / 382.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.01559, allocations: 0 / 382.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001141/0.0157, allocations: 89.09 kB / 382.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/0.01574, allocations: 33.64 kB / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.01574, allocations: 0 / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.01576, allocations: 0 / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.01576, allocations: 0 / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.01577, allocations: 8.031 kB / 382.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.045e-05/0.01579, allocations: 4 kB / 382.4 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.01579, allocations: 0 / 382.4 MB, free: 13.53 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.0001194/0.01591, allocations: 135.5 kB / 382.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.578e-05/0.01593, allocations: 11.89 kB / 382.5 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.177e-05/0.01594, allocations: 6.984 kB / 382.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.01594, allocations: 0 / 382.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.01594, allocations: 0 / 382.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.01595, allocations: 3.938 kB / 382.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.932e-05/0.01604, allocations: 97.33 kB / 382.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.01604, allocations: 4 kB / 382.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.01604, allocations: 0 / 382.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.01604, allocations: 0 / 382.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.01605, allocations: 0 / 382.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.01605, allocations: 0 / 382.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.01605, allocations: 0 / 382.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001479/0.0162, allocations: 132.5 kB / 382.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-06/0.0162, allocations: 0 / 382.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.01622, allocations: 3.984 kB / 382.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.408e-06/0.01623, allocations: 0 / 382.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.49e-05/0.01624, allocations: 4 kB / 382.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.01624, allocations: 4.031 kB / 382.8 MB, free: 13.06 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.442e-05/0.01629, allocations: 83.16 kB / 382.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01629, allocations: 0 / 382.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000562/0.01685, allocations: 159.5 kB / 383 MB, free: 12.82 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.0009397/0.01779, allocations: 417.8 kB / 383.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001584/0.01795, allocations: 114.8 kB / 383.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.01795, allocations: 0 / 383.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.564e-05/0.01802, allocations: 81.11 kB / 383.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.01815, allocations: 10.44 kB / 383.6 MB, free: 12.17 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002453/0.01839, allocations: 104 kB / 383.7 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.839e-05/0.01845, allocations: 59.47 kB / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.001e-06/0.01846, allocations: 0 / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.76e-05/0.01848, allocations: 12.5 kB / 383.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01848, allocations: 0 / 383.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of Templates: time 0.009951/0.02843, allocations: 4.718 MB / 388.5 MB, free: 7.227 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=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.091937755933031]