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.009743/0.009743, allocations: 100.2 kB / 15.73 MB, free: 6.047 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.00179/0.00179, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.673/1.673, allocations: 205.1 MB / 222.6 MB, free: 4.527 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.3336/0.3336, allocations: 39.95 MB / 309.9 MB, free: 9.352 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.00217/0.00217, allocations: 71.89 kB / 435.8 MB, free: 2.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3866, allocations: 56.87 MB / 492.6 MB, free: 19.49 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001936/0.3886, allocations: 474.3 kB / 493.1 MB, free: 19.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003452/0.3921, allocations: 2.326 MB / 495.4 MB, free: 17.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.84e-05/0.3921, allocations: 0 / 495.4 MB, free: 17.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.608e-05/0.3922, allocations: 3.938 kB / 495.4 MB, free: 17.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.3922, allocations: 0 / 495.4 MB, free: 17.58 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.003137/0.3953, allocations: 1.138 MB / 496.6 MB, free: 16.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.687e-05/0.3954, allocations: 1.25 kB / 496.6 MB, free: 16.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.927e-05/0.3954, allocations: 1.969 kB / 496.6 MB, free: 16.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.666e-05/0.3955, allocations: 5.219 kB / 496.6 MB, free: 16.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.743e-05/0.3955, allocations: 5.266 kB / 496.6 MB, free: 16.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.392e-06/0.3955, allocations: 0 / 496.6 MB, free: 16.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002346/0.3979, allocations: 0.9877 MB / 497.6 MB, free: 16.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.198e-05/0.3979, allocations: 4 kB / 497.6 MB, free: 16.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.432e-05/0.3979, allocations: 1.312 kB / 497.6 MB, free: 16.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.3992, allocations: 417.4 kB / 498 MB, free: 16.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3992, allocations: 3.938 kB / 498 MB, free: 16.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3992, allocations: 1.156 kB / 498 MB, free: 16.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3992, allocations: 0 / 498 MB, free: 16.44 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.0005746/0.3998, allocations: 429 kB / 498.4 MB, free: 16.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3999, allocations: 13.55 kB / 498.4 MB, free: 16.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.873e-05/0.3999, allocations: 1.594 kB / 498.4 MB, free: 16.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.258e-05/0.4, allocations: 168.6 kB / 498.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.4, allocations: 1.594 kB / 498.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.4, allocations: 1.594 kB / 498.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.079e-05/0.4001, allocations: 34.14 kB / 498.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.4001, allocations: 0 / 498.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.4001, allocations: 0 / 498.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.4001, allocations: 1.344 kB / 498.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.02e-05/0.4002, allocations: 1.828 kB / 498.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001081/0.4003, allocations: 147.9 kB / 498.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.732e-05/0.4003, allocations: 29.64 kB / 498.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.402e-05/0.4003, allocations: 5.516 kB / 498.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-06/0.4003, allocations: 1.25 kB / 498.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.4004, allocations: 62.28 kB / 498.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.133e-06/0.4004, allocations: 0 / 498.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001615/0.4006, allocations: 65.39 kB / 498.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.4006, allocations: 85.8 kB / 499 MB, free: 15.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.228e-05/0.4006, allocations: 91.73 kB / 499.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.055e-06/0.4006, allocations: 25.7 kB / 499.1 MB, free: 15.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.238e-05/0.4007, allocations: 84.08 kB / 499.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.283e-05/0.4007, allocations: 1.219 kB / 499.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.4007, allocations: 13.16 kB / 499.2 MB, free: 15.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.185e-05/0.4008, allocations: 311.5 kB / 499.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.949e-06/0.4008, allocations: 1.125 kB / 499.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.307e-06/0.4008, allocations: 5.719 kB / 499.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.273e-05/0.4009, allocations: 68.52 kB / 499.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.4009, allocations: 0 / 499.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.968e-05/0.4009, allocations: 63.92 kB / 499.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.401, allocations: 35.59 kB / 499.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.401, allocations: 1.609 kB / 499.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.401, allocations: 0 / 499.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-06/0.401, allocations: 1.438 kB / 499.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.401, allocations: 0.75 kB / 499.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.906e-05/0.4011, allocations: 4.094 kB / 499.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.4011, allocations: 1.844 kB / 499.7 MB, free: 14.57 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 7.544e-05/0.4012, allocations: 139.2 kB / 499.8 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.033e-05/0.4012, allocations: 3.938 kB / 499.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.341e-05/0.4012, allocations: 4.844 kB / 499.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4012, allocations: 0 / 499.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.4012, allocations: 1.734 kB / 499.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.4012, allocations: 3.984 kB / 499.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.648e-05/0.4013, allocations: 145.2 kB / 500 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4013, allocations: 4 kB / 500 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.743e-06/0.4013, allocations: 2.031 kB / 500 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.4013, allocations: 3.938 kB / 500 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.4013, allocations: 5.312 kB / 0.4883 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.4014, allocations: 0.6094 kB / 0.4883 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4014, allocations: 0 / 0.4883 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.57e-05/0.4014, allocations: 93.45 kB / 0.4884 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.753e-05/0.4015, allocations: 77.72 kB / 0.4885 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.4015, allocations: 9.891 kB / 0.4885 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.176e-05/0.4015, allocations: 1.438 kB / 0.4885 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.275e-05/0.4015, allocations: 4.594 kB / 0.4885 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.4015, allocations: 1.312 kB / 0.4885 GB, free: 14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.078e-05/0.4016, allocations: 75.28 kB / 0.4885 GB, free: 13.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4016, allocations: 3.938 kB / 0.4885 GB, free: 13.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006603/0.4022, allocations: 146.3 kB / 0.4887 GB, free: 13.88 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.001053/0.4033, allocations: 368.5 kB / 0.489 GB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.792e-05/0.4034, allocations: 58.27 kB / 0.4891 GB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4034, allocations: 3.938 kB / 0.4891 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.223e-05/0.4034, allocations: 63.88 kB / 0.4892 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001554/0.4036, allocations: 7.641 kB / 0.4892 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001928/0.4038, allocations: 81.17 kB / 0.4892 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.4039, allocations: 0.6709 MB / 0.4899 GB, free: 12.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.023e-06/0.4039, allocations: 4 kB / 0.4899 GB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.667e-05/0.404, allocations: 8.656 kB / 0.4899 GB, free: 12.75 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.404, allocations: 1.312 kB / 0.4899 GB, free: 12.75 MB / 382.1 MB Notification: Performance of Templates: time 0.009153/0.4131, allocations: 4.293 MB / 0.4941 GB, free: 11.43 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (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)