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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 108.2 kB / 18.39 MB, free: 4.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009796/0.0009796, allocations: 182.9 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 243 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2111/0.2111, allocations: 44.17 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001206, allocations: 59.42 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1306, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001717/0.1323, allocations: 470.9 kB / 471.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003145/0.1355, allocations: 2.29 MB / 473.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.241e-05/0.1355, allocations: 0 / 473.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.184e-05/0.1355, allocations: 7.938 kB / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.391e-06/0.1356, allocations: 0 / 473.4 MB, free: 10.89 MB / 350.1 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.00261/0.1382, allocations: 1.121 MB / 474.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.644e-05/0.1383, allocations: 4 kB / 474.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.551e-05/0.1383, allocations: 3.984 kB / 474.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.665e-05/0.1383, allocations: 0 / 474.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.363e-05/0.1384, allocations: 7.984 kB / 474.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.133e-06/0.1384, allocations: 0 / 474.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.1398, allocations: 0.9872 MB / 475.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.287e-06/0.1398, allocations: 0 / 475.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.146e-05/0.1399, allocations: 3.984 kB / 475.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005461/0.1404, allocations: 415.4 kB / 476 MB, free: 8.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1404, allocations: 3.938 kB / 476 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1405, allocations: 0 / 476 MB, free: 8.355 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1405, allocations: 0 / 476 MB, free: 8.355 MB / 350.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.000478/0.1409, allocations: 441.1 kB / 476.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.141, allocations: 8.031 kB / 476.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.368e-05/0.141, allocations: 0.9375 kB / 476.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.1412, allocations: 160.4 kB / 476.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1412, allocations: 384 / 476.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.1412, allocations: 4.375 kB / 476.6 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.1414, allocations: 30.02 kB / 476.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.1414, allocations: 0 / 476.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.1414, allocations: 4 kB / 476.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1414, allocations: 0 / 476.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.99e-05/0.1414, allocations: 7.938 kB / 476.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001343/0.1416, allocations: 145.7 kB / 476.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.004e-05/0.1416, allocations: 26.55 kB / 476.8 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.305e-05/0.1416, allocations: 4.859 kB / 476.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.1416, allocations: 0 / 476.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.523e-05/0.1417, allocations: 64.2 kB / 476.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.1417, allocations: 0 / 476.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001733/0.1419, allocations: 67.39 kB / 476.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.142, allocations: 81.11 kB / 477 MB, free: 7.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.542e-05/0.142, allocations: 93.86 kB / 477.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.142, allocations: 25.7 kB / 477.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.831e-05/0.1421, allocations: 80.14 kB / 477.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.1421, allocations: 3.984 kB / 477.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-05/0.1421, allocations: 13.84 kB / 477.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1423, allocations: 314.8 kB / 477.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.166e-05/0.1423, allocations: 3.984 kB / 477.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-06/0.1423, allocations: 0 / 477.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.38e-05/0.1423, allocations: 64.27 kB / 477.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1424, allocations: 0 / 477.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.826e-05/0.1424, allocations: 63.34 kB / 477.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.856e-05/0.1425, allocations: 37.62 kB / 477.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1425, allocations: 4.094 kB / 477.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1425, allocations: 0 / 477.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.1425, allocations: 0 / 477.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1425, allocations: 4 kB / 477.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.925e-05/0.1426, allocations: 4 kB / 477.7 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.1426, allocations: 0 / 477.7 MB, free: 6.363 MB / 350.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 9.306e-05/0.1427, allocations: 135.5 kB / 477.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.468e-06/0.1427, allocations: 3.938 kB / 477.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.59e-05/0.1427, allocations: 11.08 kB / 477.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1427, allocations: 4 kB / 477.9 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1427, allocations: 0 / 477.9 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1427, allocations: 7.922 kB / 477.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.1429, allocations: 149.6 kB / 478 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.1429, allocations: 0 / 478 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-06/0.1429, allocations: 0 / 478 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1429, allocations: 7.875 kB / 478 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.1429, allocations: 0 / 478 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.1429, allocations: 0 / 478 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.1429, allocations: 0 / 478 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001328/0.143, allocations: 102.7 kB / 478.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.69e-05/0.1431, allocations: 77.11 kB / 478.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.1431, allocations: 3.938 kB / 478.2 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-06/0.1431, allocations: 4 kB / 478.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.863e-05/0.1431, allocations: 3.984 kB / 478.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.1431, allocations: 0 / 478.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.371e-05/0.1432, allocations: 75.28 kB / 478.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1432, allocations: 0 / 478.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004252/0.1436, allocations: 144 kB / 478.4 MB, free: 5.539 MB / 350.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.0007687/0.1444, allocations: 370.7 kB / 478.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.1445, allocations: 55.41 kB / 478.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1445, allocations: 4 kB / 478.8 MB, free: 5.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.364e-05/0.1446, allocations: 55.34 kB / 478.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001418/0.1447, allocations: 4 kB / 478.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002489/0.145, allocations: 80.92 kB / 479 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.1453, allocations: 0.669 MB / 479.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.314e-06/0.1453, allocations: 128 / 479.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.262e-05/0.1454, allocations: 11.44 kB / 479.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1454, allocations: 0 / 479.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of Templates: time 0.007914/0.1533, allocations: 4.293 MB / 483.9 MB, free: 15.93 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile (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 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches