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.001493/0.001493, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.001791/0.001791, allocations: 168.4 kB / 24.81 MB, free: 8.922 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 1.209/1.209, allocations: 177.2 MB / 205.3 MB, free: 5.496 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.3177/0.3177, allocations: 34.26 MB / 296.1 MB, free: 0.7148 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.525e-06/2.525e-06, allocations: 0 / 378.5 MB, free: 2.43 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.228e-05/3.481e-05, allocations: 6.25 kB / 378.5 MB, free: 2.422 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001307/0.001342, allocations: 492.9 kB / 378.9 MB, free: 1.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003036/0.004378, allocations: 2.342 MB / 381.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.511e-05/0.004403, allocations: 0 / 381.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.004416, allocations: 0 / 381.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 7.143e-06/0.004423, allocations: 0 / 381.3 MB, free: 15.57 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.002439/0.006862, allocations: 1.109 MB / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.847e-05/0.006911, allocations: 4 kB / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.957e-05/0.00694, allocations: 0 / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.908e-05/0.00697, allocations: 3.984 kB / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.26e-05/0.006992, allocations: 4 kB / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.374e-06/0.007, allocations: 0 / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001379/0.008379, allocations: 0.9947 MB / 383.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.00839, allocations: 4 kB / 383.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.863e-05/0.008408, allocations: 3.984 kB / 383.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006001/0.009008, allocations: 0.5338 MB / 383.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.009013, allocations: 0 / 383.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.009014, allocations: 0 / 383.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.009018, allocations: 0 / 383.9 MB, free: 12.91 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.0003248/0.009343, allocations: 469.2 kB / 384.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.009382, allocations: 12.03 kB / 384.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.387e-05/0.009406, allocations: 0.9375 kB / 384.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.934e-05/0.009465, allocations: 108.6 kB / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.009474, allocations: 384 / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.749e-06/0.009479, allocations: 8.375 kB / 384.5 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.336e-05/0.009543, allocations: 59.84 kB / 384.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.009549, allocations: 192 / 384.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-06/0.009555, allocations: 4.375 kB / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.009561, allocations: 3.938 kB / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.609e-05/0.009577, allocations: 29.69 kB / 384.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.419e-05/0.009651, allocations: 93.27 kB / 384.7 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.566e-05/0.009696, allocations: 52.75 kB / 384.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.722e-05/0.009714, allocations: 37.48 kB / 384.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-06/0.009717, allocations: 0 / 384.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.009753, allocations: 71.03 kB / 384.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.009754, allocations: 0 / 384.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001266/0.00988, allocations: 114.8 kB / 385 MB, free: 11.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.009911, allocations: 81.11 kB / 385.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.262e-05/0.009954, allocations: 142.2 kB / 385.2 MB, free: 11.44 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.747e-06/0.009963, allocations: 25.7 kB / 385.2 MB, free: 11.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.101e-05/0.009994, allocations: 126.9 kB / 385.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.01001, allocations: 4.297 kB / 385.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-05/0.01003, allocations: 23.36 kB / 385.4 MB, free: 11.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004261/0.01046, allocations: 0.4883 MB / 385.9 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.924e-05/0.01048, allocations: 33.81 kB / 385.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.601e-05/0.0105, allocations: 33.64 kB / 385.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.892e-05/0.01053, allocations: 63.09 kB / 386 MB, free: 10.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.01054, allocations: 0 / 386 MB, free: 10.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.667e-05/0.0106, allocations: 85.11 kB / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.073e-05/0.01063, allocations: 37.69 kB / 386.1 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.01064, allocations: 0 / 386.1 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.01065, allocations: 0 / 386.1 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.01065, allocations: 0 / 386.1 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.315e-06/0.01065, allocations: 4.094 kB / 386.1 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.431e-05/0.01067, allocations: 3.938 kB / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.01067, allocations: 4 kB / 386.1 MB, free: 10.43 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.718e-05/0.01074, allocations: 178.3 kB / 386.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.812e-06/0.01075, allocations: 7.938 kB / 386.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.309e-05/0.01076, allocations: 7 kB / 386.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.01076, allocations: 3.984 kB / 386.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.01077, allocations: 0 / 386.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.01077, allocations: 3.938 kB / 386.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.703e-05/0.01083, allocations: 97.2 kB / 386.4 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.01083, allocations: 4 kB / 386.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.2e-07/0.01083, allocations: 0 / 386.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.01083, allocations: 0 / 386.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-06/0.01083, allocations: 0 / 386.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.01083, allocations: 0 / 386.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.01083, allocations: 0 / 386.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.067e-05/0.01092, allocations: 131.8 kB / 386.5 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.197e-06/0.01093, allocations: 0 / 386.5 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.275e-06/0.01094, allocations: 0 / 386.5 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.34e-06/0.01094, allocations: 0 / 386.5 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.01095, allocations: 8 kB / 386.6 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.01095, allocations: 8.016 kB / 386.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.777e-05/0.01098, allocations: 123.1 kB / 386.7 MB, free: 9.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01098, allocations: 0 / 386.7 MB, free: 9.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003332/0.01132, allocations: 155.5 kB / 386.8 MB, free: 9.641 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.0005317/0.01185, allocations: 434 kB / 387.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.566e-05/0.01194, allocations: 118.5 kB / 387.4 MB, free: 9.074 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01195, allocations: 0 / 387.4 MB, free: 9.074 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.495e-05/0.01198, allocations: 92.78 kB / 387.5 MB, free: 8.961 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.31e-05/0.01206, allocations: 7.938 kB / 387.5 MB, free: 8.953 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001341/0.0122, allocations: 113.6 kB / 387.6 MB, free: 8.805 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.792e-05/0.01223, allocations: 59.47 kB / 387.6 MB, free: 8.727 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.278e-06/0.01223, allocations: 0 / 387.6 MB, free: 8.727 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.026e-05/0.01227, allocations: 70.2 kB / 387.7 MB, free: 8.656 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01227, allocations: 0 / 387.7 MB, free: 8.656 MB / 362.7 MB Notification: Performance of Templates: time 0.007075/0.01935, allocations: 6.095 MB / 393.8 MB, free: 2.559 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.3788961018435657]