Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.TestComplexFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007744/0.007743, allocations: 169.1 kB / 16.26 MB, free: 6.66 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.654/1.654, allocations: 205.4 MB / 222.5 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.363/0.363, allocations: 40 MB / 310.7 MB, free: 9.836 MB / 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: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005083/0.0005084, allocations: 12.38 kB / 379.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1273, allocations: 57.95 MB / 437.4 MB, free: 2.234 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0006487/0.128, allocations: 210.1 kB / 437.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003554/0.1316, allocations: 2.345 MB / 439.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.235e-05/0.1316, allocations: 0 / 439.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.486e-05/0.1317, allocations: 0 / 439.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.792e-06/0.1317, allocations: 0 / 439.9 MB, free: 15.66 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.00287/0.1346, allocations: 1.013 MB / 441 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.523e-05/0.1346, allocations: 3.938 kB / 441 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.532e-05/0.1347, allocations: 0 / 441 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.09e-05/0.1347, allocations: 4 kB / 441 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.81e-05/0.1347, allocations: 4 kB / 441 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.837e-06/0.1347, allocations: 0 / 441 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001678/0.1364, allocations: 0.9638 MB / 441.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.1364, allocations: 0 / 441.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.18e-05/0.1365, allocations: 29.69 kB / 442 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007263/0.1372, allocations: 419.3 kB / 442.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1372, allocations: 0 / 442.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1372, allocations: 0 / 442.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.1372, allocations: 4 kB / 442.4 MB, free: 13.22 MB / 382.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.0004515/0.1377, allocations: 425.2 kB / 442.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1377, allocations: 8.031 kB / 442.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.1378, allocations: 0.9375 kB / 442.8 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.93e-05/0.1379, allocations: 160.4 kB / 443 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.1379, allocations: 4.375 kB / 443 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.1379, allocations: 384 / 443 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.265e-05/0.138, allocations: 38 kB / 443 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.138, allocations: 0 / 443 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.138, allocations: 8 kB / 443 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1381, allocations: 0 / 443 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.867e-05/0.1381, allocations: 3.938 kB / 443 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.1382, allocations: 146 kB / 443.2 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.209e-05/0.1383, allocations: 18.61 kB / 443.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.497e-05/0.1383, allocations: 8.797 kB / 443.2 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.069e-06/0.1383, allocations: 0 / 443.2 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001252/0.1385, allocations: 76.27 kB / 443.3 MB, free: 12.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1385, allocations: 0 / 443.3 MB, free: 12.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001831/0.1387, allocations: 71.23 kB / 443.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.1387, allocations: 77.11 kB / 443.4 MB, free: 12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.317e-05/0.1388, allocations: 93.8 kB / 443.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.1388, allocations: 25.7 kB / 443.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.096e-05/0.1388, allocations: 80.14 kB / 443.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.848e-05/0.1389, allocations: 7.938 kB / 443.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/0.1389, allocations: 13.84 kB / 443.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.1391, allocations: 314.8 kB / 443.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.969e-06/0.1391, allocations: 0 / 443.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.086e-06/0.1391, allocations: 3.984 kB / 443.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.555e-05/0.1392, allocations: 60.27 kB / 444 MB, free: 11.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.1392, allocations: 0 / 444 MB, free: 11.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.479e-05/0.1393, allocations: 67.34 kB / 444.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.053e-05/0.1394, allocations: 33.64 kB / 444.1 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1394, allocations: 8.078 kB / 444.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.1394, allocations: 0 / 444.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.1394, allocations: 0 / 444.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1394, allocations: 0 / 444.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.729e-05/0.1394, allocations: 4 kB / 444.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.1395, allocations: 0 / 444.1 MB, free: 11.23 MB / 382.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.0001014/0.1396, allocations: 131.5 kB / 444.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/0.1396, allocations: 7.938 kB / 444.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.347e-05/0.1396, allocations: 3.125 kB / 444.2 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1396, allocations: 4 kB / 444.2 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1396, allocations: 0 / 444.2 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1396, allocations: 0 / 444.2 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.1398, allocations: 145.7 kB / 444.4 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1398, allocations: 4 kB / 444.4 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.193e-06/0.1398, allocations: 0 / 444.4 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1398, allocations: 3.938 kB / 444.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.1398, allocations: 0 / 444.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1398, allocations: 0 / 444.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1398, allocations: 0 / 444.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.1399, allocations: 102.8 kB / 444.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.213e-05/0.14, allocations: 77.11 kB / 444.6 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.14, allocations: 3.938 kB / 444.6 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.266e-05/0.14, allocations: 4 kB / 444.6 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.094e-05/0.14, allocations: 0 / 444.6 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.1401, allocations: 11.86 kB / 444.6 MB, free: 10.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.747e-05/0.1401, allocations: 75.28 kB / 444.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1401, allocations: 0 / 444.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005165/0.1406, allocations: 144 kB / 444.8 MB, free: 10.42 MB / 382.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.0008131/0.1415, allocations: 362.5 kB / 445.2 MB, free: 10.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001141/0.1416, allocations: 63.41 kB / 445.2 MB, free: 9.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1416, allocations: 0 / 445.2 MB, free: 9.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.928e-05/0.1416, allocations: 63.33 kB / 445.3 MB, free: 9.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.1418, allocations: 0 / 445.3 MB, free: 9.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002154/0.142, allocations: 74.77 kB / 445.3 MB, free: 9.812 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.1423, allocations: 0.6692 MB / 446 MB, free: 9.117 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.677e-06/0.1423, allocations: 0 / 446 MB, free: 9.117 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.565e-05/0.1424, allocations: 7.562 kB / 446 MB, free: 9.109 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1424, allocations: 4 kB / 446 MB, free: 9.105 MB / 382.1 MB Notification: Performance of Templates: time 0.007895/0.1503, allocations: 4.279 MB / 450.3 MB, free: 4.82 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) Environment - environmentSimulation: