Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.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.TestComplexOperations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.009381/0.009381, allocations: 170.5 kB / 16.26 MB, free: 6.613 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.682/1.682, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.3537/0.3537, allocations: 40 MB / 310.7 MB, free: 9.914 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.0008188/0.0008191, allocations: 16 kB / 379.4 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1451, allocations: 57.95 MB / 437.4 MB, free: 2.207 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005513/0.1457, allocations: 210.1 kB / 437.6 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003851/0.1496, allocations: 2.345 MB / 439.9 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.581e-05/0.1496, allocations: 0 / 439.9 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.304e-05/0.1496, allocations: 3.938 kB / 439.9 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.48e-06/0.1496, allocations: 0 / 439.9 MB, free: 15.63 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.002444/0.1521, allocations: 1.009 MB / 441 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.635e-05/0.1521, allocations: 3.984 kB / 441 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.942e-05/0.1522, allocations: 0 / 441 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.913e-05/0.1522, allocations: 7.938 kB / 441 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.674e-05/0.1522, allocations: 7.984 kB / 441 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.013e-06/0.1523, allocations: 0 / 441 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001549/0.1538, allocations: 0.9599 MB / 441.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.107e-06/0.1538, allocations: 4 kB / 441.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.097e-05/0.1539, allocations: 25.7 kB / 442 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005761/0.1545, allocations: 415.4 kB / 442.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1545, allocations: 0 / 442.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1545, allocations: 3.938 kB / 442.4 MB, free: 13.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1545, allocations: 0 / 442.4 MB, free: 13.2 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.0004518/0.155, allocations: 425.2 kB / 442.8 MB, free: 12.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.155, allocations: 8.031 kB / 442.8 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.1551, allocations: 0.9375 kB / 442.8 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.1552, allocations: 164.3 kB / 443 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.1552, allocations: 8.375 kB / 443 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.062e-06/0.1552, allocations: 384 / 443 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.112e-05/0.1553, allocations: 34 kB / 443 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.1553, allocations: 0 / 443 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.1554, allocations: 8 kB / 443 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1554, allocations: 0 / 443 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.696e-05/0.1554, allocations: 0 / 443 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001353/0.1555, allocations: 146 kB / 443.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.209e-05/0.1556, allocations: 26.55 kB / 443.2 MB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.584e-05/0.1556, allocations: 4.859 kB / 443.2 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.841e-06/0.1556, allocations: 0 / 443.2 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.295e-05/0.1557, allocations: 68.25 kB / 443.3 MB, free: 12.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.1557, allocations: 0 / 443.3 MB, free: 12.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001805/0.1559, allocations: 67.31 kB / 443.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.1559, allocations: 77.11 kB / 443.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.755e-05/0.156, allocations: 93.98 kB / 443.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.156, allocations: 29.64 kB / 443.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.512e-05/0.156, allocations: 80.14 kB / 443.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.1561, allocations: 3.938 kB / 443.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.065e-05/0.1561, allocations: 13.66 kB / 443.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.1562, allocations: 318.8 kB / 443.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.295e-06/0.1562, allocations: 0 / 443.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.037e-06/0.1562, allocations: 0 / 443.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.562e-05/0.1563, allocations: 68.33 kB / 444 MB, free: 11.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1563, allocations: 0 / 444 MB, free: 11.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.979e-05/0.1563, allocations: 63.39 kB / 444 MB, free: 11.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.1564, allocations: 33.64 kB / 444.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1564, allocations: 0 / 444.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.1564, allocations: 0 / 444.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.034e-06/0.1564, allocations: 3.938 kB / 444.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.1564, allocations: 0 / 444.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.1564, allocations: 4 kB / 444.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.1565, allocations: 0 / 444.1 MB, free: 11.21 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 6.917e-05/0.1565, allocations: 135.6 kB / 444.2 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.1565, allocations: 15.92 kB / 444.2 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.181e-05/0.1566, allocations: 7.109 kB / 444.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1566, allocations: 3.938 kB / 444.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1566, allocations: 0 / 444.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-06/0.1566, allocations: 0 / 444.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.128e-05/0.1567, allocations: 141.7 kB / 444.4 MB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1567, allocations: 4 kB / 444.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1567, allocations: 0 / 444.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1567, allocations: 7.938 kB / 444.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.601e-06/0.1567, allocations: 0 / 444.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1567, allocations: 0 / 444.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1567, allocations: 3.984 kB / 444.4 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001064/0.1568, allocations: 90.83 kB / 444.5 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.214e-05/0.1569, allocations: 77.11 kB / 444.6 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.1569, allocations: 11.86 kB / 444.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.107e-06/0.1569, allocations: 4 kB / 444.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.125e-05/0.1569, allocations: 4.031 kB / 444.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.1569, allocations: 0 / 444.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.594e-05/0.157, allocations: 75.28 kB / 444.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.157, allocations: 0 / 444.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003831/0.1574, allocations: 144 kB / 444.8 MB, free: 10.39 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.0006596/0.158, allocations: 354.6 kB / 445.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.115e-05/0.1581, allocations: 63.39 kB / 445.2 MB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.1582, allocations: 0 / 445.2 MB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.041e-05/0.1582, allocations: 55.41 kB / 445.3 MB, free: 9.898 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.1583, allocations: 3.938 kB / 445.3 MB, free: 9.895 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001689/0.1585, allocations: 82.89 kB / 445.3 MB, free: 9.789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.1588, allocations: 0.6731 MB / 446 MB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.204e-06/0.1588, allocations: 3.984 kB / 446 MB, free: 9.086 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.037e-06/0.1588, allocations: 7.438 kB / 446 MB, free: 9.078 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1588, allocations: 0 / 446 MB, free: 9.078 MB / 382.1 MB Notification: Performance of Templates: time 0.007376/0.1662, allocations: 4.287 MB / 450.3 MB, free: 4.785 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) Environment - environmentSimulation: