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.002208/0.002208, allocations: 85.91 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002444/0.002444, allocations: 168.8 kB / 23.96 MB, free: 4.164 MB / 14.72 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.533/1.533, allocations: 177.2 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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.2129/0.2129, allocations: 34.27 MB / 294.9 MB, free: 14.58 MB / 286.1 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 1.352e-06/1.352e-06, allocations: 0 / 442.6 MB, free: 5.449 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.094e-05/3.229e-05, allocations: 5.797 kB / 442.6 MB, free: 5.445 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001857/0.001889, allocations: 489.2 kB / 443.1 MB, free: 4.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004134/0.006023, allocations: 2.283 MB / 445.4 MB, free: 2.664 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.838e-05/0.006052, allocations: 0 / 445.4 MB, free: 2.664 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.197e-05/0.006064, allocations: 0 / 445.4 MB, free: 2.664 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.963e-06/0.006071, allocations: 0 / 445.4 MB, free: 2.664 MB / 366.1 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.003275/0.009345, allocations: 1.104 MB / 446.5 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.764e-05/0.009403, allocations: 4 kB / 446.5 MB, free: 1.555 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.895e-05/0.009452, allocations: 7.984 kB / 446.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.827e-05/0.00948, allocations: 0 / 446.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.784e-05/0.009508, allocations: 0 / 446.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.009517, allocations: 0 / 446.5 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002018/0.01154, allocations: 0.9792 MB / 447.5 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.195e-05/0.01155, allocations: 0 / 447.5 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.631e-05/0.01157, allocations: 4 kB / 447.5 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.01276, allocations: 0.5418 MB / 448 MB, free: 20 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.01277, allocations: 0 / 448 MB, free: 20 kB / 366.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.01277, allocations: 0 / 448 MB, free: 20 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.01277, allocations: 0 / 448 MB, free: 20 kB / 366.1 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.2495/0.2623, allocations: 362.2 kB / 448.4 MB, free: 19.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.2623, allocations: 9 kB / 448.4 MB, free: 19.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.2623, allocations: 2.609 kB / 448.4 MB, free: 19.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.116e-05/0.2624, allocations: 106.3 kB / 448.5 MB, free: 18.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.2624, allocations: 384 / 448.5 MB, free: 18.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.378e-06/0.2624, allocations: 1.5 kB / 448.5 MB, free: 18.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.2625, allocations: 57.58 kB / 448.6 MB, free: 18.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.2625, allocations: 1.828 kB / 448.6 MB, free: 18.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.2626, allocations: 0.75 kB / 448.6 MB, free: 18.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.2626, allocations: 0.9062 kB / 448.6 MB, free: 18.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.562e-05/0.2626, allocations: 34.98 kB / 448.6 MB, free: 18.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.341e-05/0.2627, allocations: 97.22 kB / 448.7 MB, free: 18.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.984e-05/0.2627, allocations: 52.41 kB / 448.7 MB, free: 18.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.936e-05/0.2628, allocations: 33.64 kB / 448.8 MB, free: 18.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.968e-06/0.2628, allocations: 0 / 448.8 MB, free: 18.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.2628, allocations: 59.86 kB / 448.8 MB, free: 18.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.2628, allocations: 0 / 448.8 MB, free: 18.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001764/0.263, allocations: 119.4 kB / 449 MB, free: 18.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.534e-05/0.263, allocations: 79.83 kB / 449 MB, free: 18.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.974e-05/0.263, allocations: 94.86 kB / 449.1 MB, free: 18.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.522e-06/0.263, allocations: 25.7 kB / 449.2 MB, free: 18.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.032e-05/0.263, allocations: 85.28 kB / 449.2 MB, free: 18.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.595e-05/0.2631, allocations: 7.422 kB / 449.2 MB, free: 18.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.328e-05/0.2631, allocations: 12.75 kB / 449.3 MB, free: 18.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.229e-05/0.2631, allocations: 316.5 kB / 449.6 MB, free: 17.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.432e-05/0.2631, allocations: 27.53 kB / 449.6 MB, free: 17.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.071e-05/0.2631, allocations: 28.77 kB / 449.6 MB, free: 17.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.871e-05/0.2632, allocations: 66.7 kB / 449.7 MB, free: 17.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2632, allocations: 0 / 449.7 MB, free: 17.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.187e-05/0.2632, allocations: 92.58 kB / 449.8 MB, free: 17.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.2633, allocations: 31.69 kB / 449.8 MB, free: 17.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2633, allocations: 0 / 449.8 MB, free: 17.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.2633, allocations: 1.984 kB / 449.8 MB, free: 17.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.2633, allocations: 0 / 449.8 MB, free: 17.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.2633, allocations: 0.6094 kB / 449.8 MB, free: 17.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.2633, allocations: 5 kB / 449.8 MB, free: 17.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.2633, allocations: 1.062 kB / 449.8 MB, free: 17.5 MB / 366.1 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 5.006e-05/0.2634, allocations: 138.1 kB / 449.9 MB, free: 17.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.256e-06/0.2634, allocations: 5.188 kB / 450 MB, free: 17.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.087e-05/0.2634, allocations: 5.484 kB / 450 MB, free: 17.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2634, allocations: 0.9688 kB / 450 MB, free: 17.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2634, allocations: 3.094 kB / 450 MB, free: 17.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2634, allocations: 3.281 kB / 450 MB, free: 17.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.174e-05/0.2634, allocations: 100.9 kB / 450.1 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.2634, allocations: 0 / 450.1 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.693e-06/0.2634, allocations: 1.891 kB / 450.1 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2634, allocations: 0 / 450.1 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.2635, allocations: 1.062 kB / 450.1 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2635, allocations: 6.625 kB / 450.1 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2635, allocations: 1.859 kB / 450.1 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.019e-05/0.2635, allocations: 121.3 kB / 450.2 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-06/0.2635, allocations: 1.844 kB / 450.2 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.2636, allocations: 1.578 kB / 450.2 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.896e-06/0.2636, allocations: 1.25 kB / 450.2 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.849e-05/0.2636, allocations: 0.5625 kB / 450.2 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.2636, allocations: 4.781 kB / 450.2 MB, free: 17.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.209e-05/0.2636, allocations: 79.22 kB / 450.3 MB, free: 17.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2636, allocations: 4.781 kB / 450.3 MB, free: 17.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004832/0.2641, allocations: 158.7 kB / 450.4 MB, free: 16.98 MB / 366.1 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.0008562/0.2649, allocations: 429.8 kB / 450.9 MB, free: 16.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001058/0.265, allocations: 114.8 kB / 451 MB, free: 16.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.265, allocations: 1.062 kB / 451 MB, free: 16.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.68e-05/0.2651, allocations: 81.66 kB / 451.1 MB, free: 16.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.2652, allocations: 2.781 kB / 451.1 MB, free: 16.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001888/0.2654, allocations: 103.7 kB / 451.2 MB, free: 16.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.358e-05/0.2654, allocations: 54.41 kB / 451.2 MB, free: 16.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.915e-06/0.2654, allocations: 1.953 kB / 451.2 MB, free: 16.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.274e-05/0.2654, allocations: 9.531 kB / 451.2 MB, free: 16.43 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2654, allocations: 0 / 451.2 MB, free: 16.43 MB / 366.1 MB Notification: Performance of Templates: time 0.011/0.2764, allocations: 4.676 MB / 455.9 MB, free: 15.95 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.303199328482151]