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.001137/0.001137, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00165/0.00165, allocations: 189.2 kB / 16.14 MB, free: 6.652 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.61/1.61, allocations: 205.1 MB / 222 MB, free: 4.727 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.3358/0.3358, allocations: 39.93 MB / 309.3 MB, free: 9.34 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.001278/0.001278, allocations: 71.89 kB / 376.9 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1374, allocations: 56.88 MB / 433.8 MB, free: 4.148 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001668/0.1391, allocations: 0.544 MB / 434.3 MB, free: 3.602 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003194/0.1423, allocations: 2.388 MB / 436.7 MB, free: 1.191 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.576e-05/0.1424, allocations: 0 / 436.7 MB, free: 1.191 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.1424, allocations: 3.938 kB / 436.7 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.649e-06/0.1424, allocations: 0 / 436.7 MB, free: 1.188 MB / 366.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.002328/0.1447, allocations: 1.021 MB / 437.7 MB, free: 168 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.316e-05/0.1448, allocations: 0 / 437.7 MB, free: 168 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.592e-05/0.1448, allocations: 4 kB / 437.8 MB, free: 164 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.142e-05/0.1448, allocations: 3.938 kB / 437.8 MB, free: 160 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.02e-05/0.1449, allocations: 0 / 437.8 MB, free: 160 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.791e-06/0.1449, allocations: 3.938 kB / 437.8 MB, free: 156 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001354/0.1462, allocations: 0.9639 MB / 438.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.768e-06/0.1463, allocations: 0 / 438.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.513e-05/0.1463, allocations: 4 kB / 438.7 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005245/0.1468, allocations: 419.3 kB / 439.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1468, allocations: 0 / 439.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1468, allocations: 0 / 439.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.1469, allocations: 0 / 439.1 MB, free: 14.77 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.0004025/0.1473, allocations: 433.2 kB / 439.6 MB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1473, allocations: 12.03 kB / 439.6 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.187e-05/0.1473, allocations: 4.938 kB / 439.6 MB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.27e-05/0.1474, allocations: 160.4 kB / 439.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.1475, allocations: 384 / 439.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.408e-06/0.1475, allocations: 384 / 439.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.487e-05/0.1476, allocations: 41.94 kB / 439.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.1476, allocations: 0 / 439.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.1476, allocations: 0 / 439.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.1476, allocations: 0 / 439.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.794e-05/0.1476, allocations: 4 kB / 439.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001235/0.1478, allocations: 150 kB / 439.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.603e-05/0.1478, allocations: 22.64 kB / 439.9 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.174e-05/0.1478, allocations: 8.859 kB / 440 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.43e-06/0.1478, allocations: 0 / 440 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.663e-05/0.1479, allocations: 64.14 kB / 440 MB, free: 13.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1479, allocations: 0 / 440 MB, free: 13.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001678/0.1481, allocations: 67.31 kB / 440.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.1481, allocations: 85.22 kB / 440.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.192e-05/0.1482, allocations: 89.86 kB / 440.3 MB, free: 13.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.1482, allocations: 29.7 kB / 440.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.472e-05/0.1483, allocations: 80.14 kB / 440.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.1483, allocations: 3.938 kB / 440.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.597e-05/0.1483, allocations: 13.66 kB / 440.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1484, allocations: 318.8 kB / 440.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.091e-05/0.1484, allocations: 0 / 440.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.181e-06/0.1485, allocations: 4 kB / 440.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.715e-05/0.1485, allocations: 64.2 kB / 440.8 MB, free: 12.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1485, allocations: 0 / 440.8 MB, free: 12.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.677e-05/0.1486, allocations: 63.39 kB / 440.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.1486, allocations: 37.64 kB / 440.9 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1486, allocations: 0 / 440.9 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.1487, allocations: 0 / 440.9 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.196e-06/0.1487, allocations: 4 kB / 440.9 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1487, allocations: 7.938 kB / 440.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.625e-05/0.1487, allocations: 4.094 kB / 440.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.1487, allocations: 0 / 440.9 MB, free: 12.77 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 8.039e-05/0.1488, allocations: 135.5 kB / 441 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.1488, allocations: 7.938 kB / 441 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.278e-05/0.1488, allocations: 3.125 kB / 441 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1488, allocations: 0 / 441 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1489, allocations: 0 / 441 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1489, allocations: 0 / 441 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.947e-05/0.149, allocations: 149.7 kB / 441.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.149, allocations: 4 kB / 441.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.149, allocations: 3.938 kB / 441.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.149, allocations: 3.938 kB / 441.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.149, allocations: 0 / 441.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.149, allocations: 0 / 441.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.149, allocations: 0 / 441.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.386e-05/0.1491, allocations: 90.83 kB / 441.3 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.696e-05/0.1492, allocations: 77.14 kB / 441.3 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.1492, allocations: 7.938 kB / 441.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.039e-05/0.1492, allocations: 4 kB / 441.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.311e-05/0.1492, allocations: 4 kB / 441.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.1492, allocations: 0 / 441.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.573e-05/0.1492, allocations: 75.28 kB / 441.4 MB, free: 12.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1493, allocations: 0 / 441.4 MB, free: 12.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004193/0.1497, allocations: 140 kB / 441.6 MB, free: 11.96 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.0007084/0.1504, allocations: 362.7 kB / 441.9 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001009/0.1505, allocations: 63.34 kB / 442 MB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1505, allocations: 0 / 442 MB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.349e-05/0.1506, allocations: 63.45 kB / 442 MB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.1507, allocations: 15.31 kB / 442.1 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001906/0.1509, allocations: 74.7 kB / 442.1 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.1511, allocations: 0.6731 MB / 442.8 MB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.372e-06/0.1511, allocations: 0 / 442.8 MB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.066e-05/0.1512, allocations: 11.42 kB / 442.8 MB, free: 10.64 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1512, allocations: 0 / 442.8 MB, free: 10.64 MB / 382.1 MB Notification: Performance of Templates: time 0.01067/0.1618, allocations: 4.295 MB / 447.1 MB, free: 6.34 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexOperations.makefile (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)