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.001046/0.001046, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001053/0.001053, allocations: 169.9 kB / 24.91 MB, free: 9.199 MB / 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.944/0.944, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.281/0.281, allocations: 34.27 MB / 296.1 MB, free: 0.7383 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.044e-06/2.044e-06, allocations: 0 / 325.2 MB, free: 7.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.491e-05, allocations: 3.188 kB / 325.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001183/0.001208, allocations: 485.2 kB / 325.7 MB, free: 7.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002704/0.003912, allocations: 2.369 MB / 328 MB, free: 4.879 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.441e-05/0.003936, allocations: 0 / 328 MB, free: 4.879 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.4e-05/0.00395, allocations: 4 kB / 328.1 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.213e-06/0.003957, allocations: 0 / 328.1 MB, free: 4.875 MB / 298.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.002136/0.006093, allocations: 1.141 MB / 329.2 MB, free: 3.727 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.604e-05/0.006139, allocations: 0 / 329.2 MB, free: 3.727 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.3e-05/0.006172, allocations: 3.984 kB / 329.2 MB, free: 3.723 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.76e-05/0.0062, allocations: 4 kB / 329.2 MB, free: 3.719 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.206e-05/0.006222, allocations: 4 kB / 329.2 MB, free: 3.715 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.143e-06/0.006229, allocations: 0 / 329.2 MB, free: 3.715 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.00738, allocations: 1.018 MB / 330.2 MB, free: 2.695 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.088e-05/0.007391, allocations: 3.984 kB / 330.2 MB, free: 2.691 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.446e-05/0.007406, allocations: 0.625 kB / 330.2 MB, free: 2.691 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005517/0.007957, allocations: 0.5339 MB / 330.8 MB, free: 2.156 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.007962, allocations: 0 / 330.8 MB, free: 2.156 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.007964, allocations: 4 kB / 330.8 MB, free: 2.152 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.007969, allocations: 0 / 330.8 MB, free: 2.152 MB / 298.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.0003298/0.008299, allocations: 345.5 kB / 331.1 MB, free: 1.785 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.008339, allocations: 11.97 kB / 331.1 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.656e-05/0.008365, allocations: 0.9375 kB / 331.1 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.328e-05/0.008428, allocations: 109.7 kB / 331.2 MB, free: 1.641 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.008438, allocations: 384 / 331.2 MB, free: 1.641 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-06/0.008446, allocations: 4.359 kB / 331.2 MB, free: 1.637 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.989e-05/0.008516, allocations: 59.95 kB / 331.3 MB, free: 1.566 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-06/0.008521, allocations: 192 / 331.3 MB, free: 1.566 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-06/0.008527, allocations: 384 / 331.3 MB, free: 1.566 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.008533, allocations: 3.938 kB / 331.3 MB, free: 1.562 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.45e-05/0.008548, allocations: 33.7 kB / 331.3 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.164e-05/0.008609, allocations: 57.05 kB / 331.4 MB, free: 1.453 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.311e-05/0.008652, allocations: 48.25 kB / 331.4 MB, free: 1.391 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.506e-05/0.008667, allocations: 34.55 kB / 331.5 MB, free: 1.348 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-06/0.008671, allocations: 0 / 331.5 MB, free: 1.348 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.008709, allocations: 60.33 kB / 331.5 MB, free: 1.273 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.00871, allocations: 0 / 331.5 MB, free: 1.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001083/0.008818, allocations: 110.8 kB / 331.6 MB, free: 1.141 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.008854, allocations: 81.11 kB / 331.7 MB, free: 1.043 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.229e-05/0.008886, allocations: 97.91 kB / 331.8 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.368e-06/0.008895, allocations: 29.7 kB / 331.8 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.925e-05/0.008914, allocations: 80.14 kB / 331.9 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.008932, allocations: 1.375 kB / 331.9 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/0.008953, allocations: 17.72 kB / 331.9 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.088e-05/0.009024, allocations: 314.8 kB / 332.2 MB, free: 492 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.717e-05/0.009041, allocations: 25.7 kB / 332.3 MB, free: 460 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.253e-05/0.009054, allocations: 29.7 kB / 332.3 MB, free: 424 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.688e-05/0.00909, allocations: 64.25 kB / 332.4 MB, free: 344 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.009092, allocations: 0 / 332.4 MB, free: 344 kB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.835e-05/0.009141, allocations: 85.17 kB / 332.4 MB, free: 240 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.009168, allocations: 29.7 kB / 332.5 MB, free: 204 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.009174, allocations: 7.984 kB / 332.5 MB, free: 196 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/0.009183, allocations: 3.938 kB / 332.5 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.035e-06/0.009186, allocations: 0 / 332.5 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.296e-06/0.009189, allocations: 0 / 332.5 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.169e-05/0.009201, allocations: 0 / 332.5 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.009206, allocations: 3.938 kB / 332.5 MB, free: 188 kB / 298.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.228e-05/0.009269, allocations: 139.5 kB / 332.6 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.21e-06/0.009274, allocations: 0 / 332.6 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.013e-06/0.009281, allocations: 7.031 kB / 332.6 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.009283, allocations: 4 kB / 332.6 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.009284, allocations: 0 / 332.6 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.009287, allocations: 0 / 332.6 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.553e-05/0.009342, allocations: 65.83 kB / 332.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.009343, allocations: 0 / 332.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.009343, allocations: 0 / 332.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.02e-07/0.009344, allocations: 4 kB / 332.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-06/0.009347, allocations: 0 / 332.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.614e-06/0.009349, allocations: 4 kB / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.00935, allocations: 0 / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.08e-05/0.00942, allocations: 128.4 kB / 332.8 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.591e-06/0.009426, allocations: 4.844 kB / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.197e-06/0.009435, allocations: 0 / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.94e-06/0.00944, allocations: 0 / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.207e-06/0.009449, allocations: 0 / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.009452, allocations: 4 kB / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.503e-06/0.009459, allocations: 4.859 kB / 332.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009459, allocations: 0 / 332.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003011/0.00976, allocations: 155.5 kB / 333 MB, free: 15.61 MB / 314.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.0006032/0.01036, allocations: 430.1 kB / 333.4 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.01047, allocations: 115.7 kB / 333.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.01047, allocations: 4.062 kB / 333.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.397e-05/0.0105, allocations: 85.97 kB / 333.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.781e-05/0.01057, allocations: 3.938 kB / 333.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001588/0.01073, allocations: 116.5 kB / 333.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.48e-05/0.01076, allocations: 55.36 kB / 333.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.861e-06/0.01076, allocations: 0 / 333.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.441e-05/0.0108, allocations: 55.36 kB / 333.8 MB, free: 14.66 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.0108, allocations: 0 / 333.8 MB, free: 14.66 MB / 314.7 MB Notification: Performance of Templates: time 0.009345/0.02014, allocations: 6.091 MB / 339.9 MB, free: 8.57 MB / 314.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.065419956110418]