Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 109.7 kB / 17.03 MB, free: 5.66 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.001773/0.001773, allocations: 190.9 kB / 17.96 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.1 MB / 223.8 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2325/0.2325, allocations: 43.53 MB / 314.7 MB, free: 476 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001522, allocations: 69.98 kB / 384.2 MB, free: 56.33 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1408, allocations: 57.79 MB / 442 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001844/0.1427, allocations: 478.7 kB / 442.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.1455, allocations: 2.312 MB / 444.7 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.269e-05/0.1455, allocations: 0 / 444.7 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.261e-05/0.1456, allocations: 0 / 444.7 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-06/0.1456, allocations: 3.938 kB / 444.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002406/0.148, allocations: 1.132 MB / 445.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.854e-05/0.1481, allocations: 4 kB / 445.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.693e-05/0.1481, allocations: 0 / 445.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.782e-05/0.1482, allocations: 0 / 445.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.245e-05/0.1482, allocations: 3.938 kB / 445.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.965e-06/0.1482, allocations: 0 / 445.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001308/0.1495, allocations: 0.9911 MB / 446.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.307e-05/0.1495, allocations: 4 kB / 446.9 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.18e-05/0.1496, allocations: 3.984 kB / 446.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005241/0.1501, allocations: 419.4 kB / 447.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1501, allocations: 0 / 447.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1501, allocations: 0 / 447.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1501, allocations: 0 / 447.3 MB, free: 0.7969 MB / 318.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.0003955/0.1505, allocations: 433.1 kB / 447.7 MB, free: 328 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1506, allocations: 15.89 kB / 447.7 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.055e-05/0.1506, allocations: 4.844 kB / 447.7 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.05e-05/0.1507, allocations: 164.4 kB / 447.9 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.1507, allocations: 4.375 kB / 447.9 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.1508, allocations: 4.312 kB / 447.9 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.1509, allocations: 34.02 kB / 447.9 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1509, allocations: 3.938 kB / 447.9 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.938e-06/0.1509, allocations: 0 / 447.9 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.1509, allocations: 0 / 447.9 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.143e-05/0.1509, allocations: 4 kB / 447.9 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.1511, allocations: 149.7 kB / 448.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.559e-05/0.1512, allocations: 18.58 kB / 448.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.902e-05/0.1512, allocations: 12.89 kB / 448.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.001e-06/0.1512, allocations: 0 / 448.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.065e-05/0.1513, allocations: 60.2 kB / 448.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1513, allocations: 0 / 448.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002082/0.1515, allocations: 67.39 kB / 448.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.1516, allocations: 77.11 kB / 448.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.345e-05/0.1517, allocations: 93.98 kB / 448.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.1517, allocations: 29.7 kB / 448.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.686e-05/0.1517, allocations: 80.14 kB / 448.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.1518, allocations: 0 / 448.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.1518, allocations: 9.719 kB / 448.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1519, allocations: 314.8 kB / 448.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.276e-05/0.152, allocations: 3.938 kB / 448.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.062e-05/0.152, allocations: 4 kB / 448.8 MB, free: 15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.194e-05/0.152, allocations: 72.25 kB / 448.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1521, allocations: 4 kB / 448.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.737e-05/0.1521, allocations: 59.41 kB / 449 MB, free: 14.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.751e-05/0.1522, allocations: 34.89 kB / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1522, allocations: 0 / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1522, allocations: 0 / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.383e-06/0.1522, allocations: 0 / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.1522, allocations: 4 kB / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.729e-05/0.1523, allocations: 3.984 kB / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.1523, allocations: 4.031 kB / 449 MB, free: 14.79 MB / 334.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 0.0001201/0.1524, allocations: 143.4 kB / 449.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-06/0.1524, allocations: 7.938 kB / 449.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.105e-05/0.1524, allocations: 3.125 kB / 449.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.1524, allocations: 0 / 449.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1524, allocations: 0 / 449.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1524, allocations: 0 / 449.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.1526, allocations: 149.7 kB / 449.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1526, allocations: 0 / 449.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1526, allocations: 4 kB / 449.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1526, allocations: 3.938 kB / 449.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.1526, allocations: 0 / 449.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1526, allocations: 0 / 449.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1526, allocations: 3.938 kB / 449.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.691e-05/0.1527, allocations: 90.83 kB / 449.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.521e-05/0.1528, allocations: 77.11 kB / 449.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.1528, allocations: 3.938 kB / 449.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.038e-05/0.1528, allocations: 8.031 kB / 449.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.561e-05/0.1529, allocations: 3.984 kB / 449.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.1529, allocations: 0 / 449.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.942e-05/0.1529, allocations: 79.22 kB / 449.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1529, allocations: 0 / 449.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000431/0.1533, allocations: 144 kB / 449.7 MB, free: 13.98 MB / 334.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.0007151/0.1541, allocations: 363 kB / 450.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.1542, allocations: 59.39 kB / 450.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1542, allocations: 0 / 450.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.982e-05/0.1543, allocations: 59.41 kB / 450.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.1544, allocations: 9.328 kB / 450.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002439/0.1546, allocations: 73.08 kB / 450.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.155, allocations: 0.6729 MB / 450.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.907e-06/0.155, allocations: 0 / 450.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.54e-05/0.155, allocations: 11.38 kB / 451 MB, free: 12.66 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.155, allocations: 0 / 451 MB, free: 12.66 MB / 334.1 MB Notification: Performance of Templates: time 0.009858/0.1649, allocations: 4.294 MB / 455.3 MB, free: 8.367 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches