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.001864/0.001864, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002958/0.002958, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.7/1.7, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.381/0.381, allocations: 39.94 MB / 309.7 MB, free: 9.309 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.001613/0.001613, allocations: 82.38 kB / 377.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1189, allocations: 56.88 MB / 434.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002148/0.1211, allocations: 482.8 kB / 435 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003745/0.1249, allocations: 2.325 MB / 437.3 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.946e-05/0.1249, allocations: 0 / 437.3 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.575e-05/0.125, allocations: 0 / 437.3 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.491e-06/0.125, allocations: 0 / 437.3 MB, free: 0.875 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.003062/0.128, allocations: 1.121 MB / 438.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.138e-05/0.1281, allocations: 8 kB / 438.4 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.456e-05/0.1282, allocations: 3.938 kB / 438.4 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.849e-05/0.1282, allocations: 0 / 438.4 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.316e-05/0.1282, allocations: 3.984 kB / 438.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.673e-06/0.1282, allocations: 0 / 438.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.13, allocations: 0.96 MB / 439.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.939e-06/0.13, allocations: 0 / 439.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.853e-05/0.1301, allocations: 4 kB / 439.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008302/0.1309, allocations: 423.3 kB / 439.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1309, allocations: 0 / 439.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1309, allocations: 7.938 kB / 439.8 MB, free: 14.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1309, allocations: 0 / 439.8 MB, free: 14.35 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.000511/0.1314, allocations: 425.2 kB / 440.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1315, allocations: 11.89 kB / 440.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.1315, allocations: 4.938 kB / 440.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.345e-05/0.1316, allocations: 160.4 kB / 440.4 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.1317, allocations: 4.359 kB / 440.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.1317, allocations: 4.375 kB / 440.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.818e-05/0.1318, allocations: 30.02 kB / 440.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.1318, allocations: 7.922 kB / 440.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.1318, allocations: 0 / 440.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.1318, allocations: 4 kB / 440.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.784e-05/0.1318, allocations: 0 / 440.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000172/0.132, allocations: 150 kB / 440.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.288e-05/0.1321, allocations: 18.61 kB / 440.6 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.568e-05/0.1321, allocations: 4.859 kB / 440.6 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.631e-06/0.1321, allocations: 0 / 440.6 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.169e-05/0.1321, allocations: 64.19 kB / 440.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.485e-06/0.1322, allocations: 0 / 440.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002178/0.1324, allocations: 71.31 kB / 440.7 MB, free: 13.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.1324, allocations: 85.23 kB / 440.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.775e-05/0.1325, allocations: 89.86 kB / 440.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.1325, allocations: 29.64 kB / 440.9 MB, free: 12.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.031e-05/0.1326, allocations: 80.14 kB / 441 MB, free: 12.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.1326, allocations: 3.938 kB / 441 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-05/0.1326, allocations: 17.7 kB / 441 MB, free: 12.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1328, allocations: 314.8 kB / 441.3 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.368e-05/0.1328, allocations: 4 kB / 441.4 MB, free: 12.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.1328, allocations: 4 kB / 441.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.212e-05/0.1329, allocations: 64.2 kB / 441.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1329, allocations: 0 / 441.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.349e-05/0.133, allocations: 63.39 kB / 441.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.133, allocations: 33.64 kB / 441.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.133, allocations: 3.984 kB / 441.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.133, allocations: 0 / 441.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.133, allocations: 4 kB / 441.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1331, allocations: 4.094 kB / 441.5 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.728e-05/0.1331, allocations: 0 / 441.5 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.1331, allocations: 0 / 441.5 MB, free: 12.35 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.0001077/0.1332, allocations: 139.5 kB / 441.7 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.1332, allocations: 3.938 kB / 441.7 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.505e-05/0.1333, allocations: 7.109 kB / 441.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1333, allocations: 3.938 kB / 441.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1333, allocations: 0 / 441.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1333, allocations: 0 / 441.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.1334, allocations: 153.7 kB / 441.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1334, allocations: 0 / 441.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-07/0.1334, allocations: 0 / 441.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.1334, allocations: 3.938 kB / 441.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.1335, allocations: 3.938 kB / 441.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.1335, allocations: 3.984 kB / 441.8 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1335, allocations: 0 / 441.8 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/0.1336, allocations: 86.84 kB / 441.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.259e-05/0.1336, allocations: 85.12 kB / 442 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.1337, allocations: 7.938 kB / 442 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.261e-05/0.1337, allocations: 0 / 442 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.311e-05/0.1337, allocations: 0 / 442 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.1337, allocations: 0 / 442 MB, free: 11.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.176e-05/0.1338, allocations: 83.22 kB / 442.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1338, allocations: 0 / 442.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005405/0.1343, allocations: 136 kB / 442.2 MB, free: 11.54 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.0008623/0.1352, allocations: 370.2 kB / 442.6 MB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.1353, allocations: 71.28 kB / 442.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1353, allocations: 0 / 442.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.214e-05/0.1354, allocations: 55.47 kB / 442.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001452/0.1355, allocations: 11.27 kB / 442.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002228/0.1357, allocations: 80.92 kB / 442.8 MB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.136, allocations: 0.669 MB / 443.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.675e-06/0.1361, allocations: 0 / 443.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.311e-05/0.1361, allocations: 7.438 kB / 443.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1361, allocations: 0 / 443.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of Templates: time 0.008656/0.1447, allocations: 4.306 MB / 447.8 MB, free: 5.895 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)