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.006707/0.006707, allocations: 102.9 kB / 15.73 MB, free: 6.469 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.001343/0.001343, allocations: 194.2 kB / 16.67 MB, free: 6.379 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.584/1.584, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.4158/0.4158, allocations: 39.94 MB / 309.8 MB, free: 9.512 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.002883/0.002883, allocations: 67.91 kB / 435.8 MB, free: 2.488 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4283/0.4312, allocations: 56.87 MB / 492.6 MB, free: 19.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001634/0.4329, allocations: 486.9 kB / 493.1 MB, free: 19.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.436, allocations: 2.324 MB / 495.4 MB, free: 17.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.672e-05/0.436, allocations: 3.938 kB / 495.4 MB, free: 17.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.511e-05/0.4361, allocations: 1.062 kB / 495.4 MB, free: 17.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.65e-06/0.4361, allocations: 0 / 495.4 MB, free: 17.61 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.00275/0.4388, allocations: 1.126 MB / 496.6 MB, free: 16.97 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.762e-05/0.4389, allocations: 9.859 kB / 496.6 MB, free: 16.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.441e-05/0.4389, allocations: 1.891 kB / 496.6 MB, free: 16.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.766e-05/0.439, allocations: 5.094 kB / 496.6 MB, free: 16.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.448e-05/0.439, allocations: 0 / 496.6 MB, free: 16.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-06/0.439, allocations: 1.344 kB / 496.6 MB, free: 16.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001716/0.4407, allocations: 0.9871 MB / 497.6 MB, free: 16.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.012e-05/0.4408, allocations: 0 / 497.6 MB, free: 16.65 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.327e-05/0.4408, allocations: 5.469 kB / 497.6 MB, free: 16.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006675/0.4415, allocations: 417.5 kB / 498 MB, free: 16.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4415, allocations: 0.6562 kB / 498 MB, free: 16.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.4415, allocations: 1.375 kB / 498 MB, free: 16.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.4415, allocations: 0 / 498 MB, free: 16.48 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.0003999/0.4419, allocations: 424 kB / 498.4 MB, free: 16.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.442, allocations: 13.73 kB / 498.4 MB, free: 16.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.646e-05/0.442, allocations: 1.938 kB / 498.4 MB, free: 16.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.472e-05/0.4421, allocations: 169.4 kB / 498.6 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.4421, allocations: 5.562 kB / 498.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.4421, allocations: 4.375 kB / 498.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.367e-05/0.4422, allocations: 37.81 kB / 498.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.4422, allocations: 1.219 kB / 498.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.4422, allocations: 0 / 498.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4422, allocations: 0 / 498.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.83e-05/0.4423, allocations: 2.031 kB / 498.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001055/0.4424, allocations: 148.5 kB / 498.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.278e-05/0.4424, allocations: 21.47 kB / 498.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.663e-05/0.4425, allocations: 13.97 kB / 498.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.4425, allocations: 0.5625 kB / 498.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.4425, allocations: 65.98 kB / 498.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.4425, allocations: 0 / 498.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001705/0.4427, allocations: 61.08 kB / 498.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.4428, allocations: 79.06 kB / 499 MB, free: 15.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.105e-05/0.4428, allocations: 90.55 kB / 499.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.328e-06/0.4428, allocations: 30.8 kB / 499.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.445e-05/0.4428, allocations: 84.14 kB / 499.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.4429, allocations: 4.906 kB / 499.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/0.4429, allocations: 12.58 kB / 499.2 MB, free: 15.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.579e-05/0.443, allocations: 312.7 kB / 499.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.176e-05/0.443, allocations: 0.6094 kB / 499.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.432e-06/0.443, allocations: 1 kB / 499.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.968e-05/0.4431, allocations: 68.95 kB / 499.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4431, allocations: 0 / 499.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.95e-05/0.4431, allocations: 64.8 kB / 499.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/0.4432, allocations: 40.77 kB / 499.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.4432, allocations: 0 / 499.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.4432, allocations: 1.062 kB / 499.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.4432, allocations: 0.7969 kB / 499.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.4432, allocations: 0 / 499.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.605e-05/0.4432, allocations: 1.438 kB / 499.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.4433, allocations: 4 kB / 499.7 MB, free: 14.6 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.424e-05/0.4433, allocations: 140.8 kB / 499.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.064e-05/0.4433, allocations: 4.5 kB / 499.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.221e-05/0.4434, allocations: 3.641 kB / 499.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4434, allocations: 1.281 kB / 499.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.4434, allocations: 0 / 499.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.4434, allocations: 0.6094 kB / 499.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.736e-05/0.4435, allocations: 150 kB / 500 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.4435, allocations: 3.938 kB / 500 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-07/0.4435, allocations: 0.5156 kB / 500 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.155e-06/0.4435, allocations: 9.219 kB / 0.4883 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.4435, allocations: 0.6094 kB / 0.4883 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.4435, allocations: 1.312 kB / 0.4883 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.4435, allocations: 0 / 0.4883 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.573e-05/0.4436, allocations: 88.89 kB / 0.4884 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.986e-05/0.4436, allocations: 77.72 kB / 0.4884 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.4436, allocations: 5.672 kB / 0.4885 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.097e-06/0.4437, allocations: 5.031 kB / 0.4885 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.265e-05/0.4437, allocations: 1.672 kB / 0.4885 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.4437, allocations: 0.7031 kB / 0.4885 GB, free: 14.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.614e-05/0.4437, allocations: 76.34 kB / 0.4885 GB, free: 13.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.292e-06/0.4437, allocations: 0 / 0.4885 GB, free: 13.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005204/0.4442, allocations: 145.1 kB / 0.4887 GB, free: 13.92 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.0007495/0.445, allocations: 365.4 kB / 0.489 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.14e-05/0.4451, allocations: 62.53 kB / 0.4891 GB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4451, allocations: 0 / 0.4891 GB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.073e-05/0.4451, allocations: 64.34 kB / 0.4891 GB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.4453, allocations: 8.562 kB / 0.4891 GB, free: 13.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001773/0.4455, allocations: 86.72 kB / 0.4892 GB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.4456, allocations: 0.6709 MB / 0.4899 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.003e-06/0.4456, allocations: 4 kB / 0.4899 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.118e-05/0.4456, allocations: 9.812 kB / 0.4899 GB, free: 12.79 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.4456, allocations: 0 / 0.4899 GB, free: 12.79 MB / 382.1 MB Notification: Performance of Templates: time 0.00851/0.4541, allocations: 4.3 MB / 0.4941 GB, free: 11.47 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)