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.01126/0.01126, allocations: 95.3 kB / 15.73 MB, free: 6.484 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.002172/0.002172, allocations: 190.9 kB / 16.67 MB, free: 6.391 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.688/1.688, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.3294/0.3294, allocations: 39.95 MB / 309.8 MB, free: 9.371 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.001433/0.001433, allocations: 67.91 kB / 435.8 MB, free: 2.496 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3134, allocations: 56.87 MB / 492.6 MB, free: 19.42 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001551/0.315, allocations: 483.5 kB / 493.1 MB, free: 19.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002931/0.3179, allocations: 2.327 MB / 495.4 MB, free: 17.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.504e-05/0.318, allocations: 0 / 495.4 MB, free: 17.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.318, allocations: 1.188 kB / 495.4 MB, free: 17.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.222e-06/0.318, allocations: 4 kB / 495.4 MB, free: 17.49 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.002559/0.3206, allocations: 1.125 MB / 496.6 MB, free: 16.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.464e-05/0.3206, allocations: 6.172 kB / 496.6 MB, free: 16.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.548e-05/0.3207, allocations: 1.812 kB / 496.6 MB, free: 16.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.828e-05/0.3207, allocations: 4.453 kB / 496.6 MB, free: 16.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.472e-05/0.3207, allocations: 9.188 kB / 496.6 MB, free: 16.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.722e-06/0.3207, allocations: 0 / 496.6 MB, free: 16.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001728/0.3225, allocations: 0.9875 MB / 497.6 MB, free: 16.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.227e-06/0.3225, allocations: 0 / 497.6 MB, free: 16.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.101e-05/0.3225, allocations: 1.531 kB / 497.6 MB, free: 16.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006369/0.3232, allocations: 418.5 kB / 498 MB, free: 16.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3232, allocations: 1.125 kB / 498 MB, free: 16.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3232, allocations: 0 / 498 MB, free: 16.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.3232, allocations: 0 / 498 MB, free: 16.38 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.0004214/0.3236, allocations: 440.2 kB / 498.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.3237, allocations: 14.62 kB / 498.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.563e-05/0.3237, allocations: 4.875 kB / 498.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.886e-05/0.3238, allocations: 161.8 kB / 498.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.3238, allocations: 1.75 kB / 498.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.847e-06/0.3238, allocations: 384 / 498.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.406e-05/0.3239, allocations: 34.28 kB / 498.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3239, allocations: 0 / 498.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.324, allocations: 0 / 498.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.324, allocations: 5.344 kB / 498.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.286e-05/0.324, allocations: 10.12 kB / 498.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001067/0.3241, allocations: 143.9 kB / 498.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.392e-05/0.3242, allocations: 17.06 kB / 498.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.444e-05/0.3242, allocations: 6.359 kB / 498.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.3242, allocations: 0.5156 kB / 498.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.3242, allocations: 66.22 kB / 498.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.3242, allocations: 4 kB / 498.9 MB, free: 15.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001722/0.3244, allocations: 65.44 kB / 498.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.3245, allocations: 78.98 kB / 499 MB, free: 15.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.89e-05/0.3245, allocations: 93.8 kB / 499.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.965e-06/0.3245, allocations: 26.31 kB / 499.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.352e-05/0.3246, allocations: 81.86 kB / 499.2 MB, free: 15.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.292e-05/0.3246, allocations: 0 / 499.2 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.521e-05/0.3246, allocations: 15.83 kB / 499.2 MB, free: 14.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.353e-05/0.3247, allocations: 317.2 kB / 499.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.061e-05/0.3247, allocations: 1.406 kB / 499.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.392e-06/0.3247, allocations: 0.7031 kB / 499.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.625e-05/0.3247, allocations: 61.22 kB / 499.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3248, allocations: 0.6094 kB / 499.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.805e-05/0.3248, allocations: 66.81 kB / 499.7 MB, free: 14.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.3249, allocations: 36.11 kB / 499.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3249, allocations: 0.75 kB / 499.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.3249, allocations: 5.094 kB / 499.7 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.3249, allocations: 0 / 499.7 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3249, allocations: 1.5 kB / 499.7 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.749e-05/0.3249, allocations: 1.094 kB / 499.7 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.3249, allocations: 4 kB / 499.7 MB, free: 14.49 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.066e-05/0.325, allocations: 139 kB / 499.8 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.698e-06/0.325, allocations: 5.578 kB / 499.8 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.019e-05/0.325, allocations: 4.188 kB / 499.8 MB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.325, allocations: 4.609 kB / 499.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3251, allocations: 1.156 kB / 499.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3251, allocations: 0 / 499.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.427e-05/0.3251, allocations: 145.2 kB / 500 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.3251, allocations: 4.969 kB / 500 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3251, allocations: 0 / 500 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3252, allocations: 5.656 kB / 0.4883 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.3252, allocations: 1.094 kB / 0.4883 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3252, allocations: 0 / 0.4883 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3252, allocations: 0.6562 kB / 0.4883 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.774e-05/0.3253, allocations: 100.8 kB / 0.4884 GB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.781e-05/0.3253, allocations: 78 kB / 0.4885 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.3253, allocations: 5.547 kB / 0.4885 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.678e-06/0.3253, allocations: 0.7812 kB / 0.4885 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.115e-05/0.3253, allocations: 5.719 kB / 0.4885 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.3253, allocations: 5 kB / 0.4885 GB, free: 13.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.286e-05/0.3254, allocations: 75.28 kB / 0.4885 GB, free: 13.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3254, allocations: 0 / 0.4885 GB, free: 13.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004467/0.3258, allocations: 146.7 kB / 0.4887 GB, free: 13.8 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.0007281/0.3266, allocations: 367.7 kB / 0.489 GB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.3267, allocations: 62.52 kB / 0.4891 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3267, allocations: 0 / 0.4891 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.502e-05/0.3267, allocations: 59.62 kB / 0.4892 GB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.3269, allocations: 10.89 kB / 0.4892 GB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001997/0.3271, allocations: 87.98 kB / 0.4892 GB, free: 13.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001668/0.3272, allocations: 0.6714 MB / 0.4899 GB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.175e-06/0.3273, allocations: 1.219 kB / 0.4899 GB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.332e-05/0.3273, allocations: 12.81 kB / 0.4899 GB, free: 12.66 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3273, allocations: 0 / 0.4899 GB, free: 12.66 MB / 382.1 MB Notification: Performance of Templates: time 0.009252/0.3365, allocations: 4.283 MB / 0.4941 GB, free: 11.43 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)