Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009708/0.009708, allocations: 99.16 kB / 15.73 MB, free: 6.004 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.001467/0.001467, allocations: 191.4 kB / 16.67 MB, free: 5.93 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.686/1.686, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.4078/0.4078, allocations: 39.94 MB / 309.8 MB, free: 9.434 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.001977/0.001977, allocations: 72.45 kB / 435.8 MB, free: 2.484 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3571, allocations: 56.87 MB / 492.6 MB, free: 19.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001597/0.3587, allocations: 498.5 kB / 493.1 MB, free: 19.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006134/0.3594, allocations: 255.2 kB / 493.4 MB, free: 18.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.56e-05/0.3594, allocations: 0 / 493.4 MB, free: 18.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.587e-05/0.3594, allocations: 4 kB / 493.4 MB, free: 18.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.632e-06/0.3594, allocations: 1.219 kB / 493.4 MB, free: 18.96 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003308/0.3598, allocations: 48.61 kB / 493.4 MB, free: 18.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.433e-05/0.3598, allocations: 5.266 kB / 493.4 MB, free: 18.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.516e-05/0.3599, allocations: 2.5 kB / 493.4 MB, free: 18.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.519e-05/0.3599, allocations: 1.312 kB / 493.4 MB, free: 18.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.115e-05/0.3599, allocations: 0 / 493.4 MB, free: 18.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.075e-06/0.36, allocations: 0 / 493.4 MB, free: 18.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.3601, allocations: 67.62 kB / 493.5 MB, free: 18.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.3601, allocations: 3.938 kB / 493.5 MB, free: 18.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.387e-05/0.3602, allocations: 1.125 kB / 493.5 MB, free: 18.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.3603, allocations: 68.19 kB / 493.6 MB, free: 18.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3603, allocations: 0 / 493.6 MB, free: 18.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3603, allocations: 1.125 kB / 493.6 MB, free: 18.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.3603, allocations: 0 / 493.6 MB, free: 18.88 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.0002767/0.3606, allocations: 359.8 kB / 493.9 MB, free: 18.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.3607, allocations: 13.36 kB / 493.9 MB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.68e-05/0.3607, allocations: 5.953 kB / 493.9 MB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.503e-05/0.3608, allocations: 161.9 kB / 494.1 MB, free: 18.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.3608, allocations: 1.562 kB / 494.1 MB, free: 18.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-06/0.3608, allocations: 4.375 kB / 494.1 MB, free: 18.28 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.514e-05/0.3609, allocations: 34.14 kB / 494.1 MB, free: 18.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3609, allocations: 1.25 kB / 494.1 MB, free: 18.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.3609, allocations: 3.938 kB / 494.1 MB, free: 18.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.3609, allocations: 3.938 kB / 494.1 MB, free: 18.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.745e-05/0.3609, allocations: 3 kB / 494.1 MB, free: 18.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.26e-05/0.361, allocations: 144.3 kB / 494.3 MB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.482e-05/0.3611, allocations: 19.73 kB / 494.3 MB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.489e-05/0.3611, allocations: 12.94 kB / 494.3 MB, free: 18.01 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.666e-06/0.3611, allocations: 1.188 kB / 494.3 MB, free: 18.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.3612, allocations: 62.2 kB / 494.4 MB, free: 17.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3612, allocations: 0 / 494.4 MB, free: 17.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001555/0.3613, allocations: 65.83 kB / 494.4 MB, free: 17.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.3614, allocations: 81.84 kB / 494.5 MB, free: 17.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.145e-05/0.3614, allocations: 90.98 kB / 494.6 MB, free: 17.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.052e-06/0.3614, allocations: 29.83 kB / 494.6 MB, free: 17.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.189e-05/0.3614, allocations: 80.98 kB / 494.7 MB, free: 17.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.3614, allocations: 1.094 kB / 494.7 MB, free: 17.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.325e-05/0.3615, allocations: 15.97 kB / 494.7 MB, free: 17.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.924e-05/0.3615, allocations: 312.8 kB / 495 MB, free: 17.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.107e-05/0.3616, allocations: 0.7969 kB / 495 MB, free: 17.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.12e-06/0.3616, allocations: 1.156 kB / 495 MB, free: 17.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.207e-05/0.3616, allocations: 64.5 kB / 495.1 MB, free: 17.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3616, allocations: 1.25 kB / 495.1 MB, free: 17.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.484e-05/0.3617, allocations: 63.64 kB / 495.2 MB, free: 17.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.3617, allocations: 36.12 kB / 495.2 MB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3617, allocations: 1.125 kB / 495.2 MB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.3617, allocations: 3.938 kB / 495.2 MB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3617, allocations: 0 / 495.2 MB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3617, allocations: 5.906 kB / 495.2 MB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.57e-05/0.3618, allocations: 0 / 495.2 MB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.3618, allocations: 5.094 kB / 495.2 MB, free: 17.04 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 5.162e-05/0.3618, allocations: 143.2 kB / 495.4 MB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-06/0.3618, allocations: 1.281 kB / 495.4 MB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.063e-05/0.3619, allocations: 7.625 kB / 495.4 MB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-06/0.3619, allocations: 1.375 kB / 495.4 MB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3619, allocations: 0.7031 kB / 495.4 MB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3619, allocations: 0 / 495.4 MB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.108e-05/0.3619, allocations: 148.9 kB / 495.5 MB, free: 16.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3619, allocations: 1.891 kB / 495.5 MB, free: 16.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3619, allocations: 3.938 kB / 495.5 MB, free: 16.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.362, allocations: 4 kB / 495.5 MB, free: 16.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.362, allocations: 5.766 kB / 495.5 MB, free: 16.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.362, allocations: 0 / 495.5 MB, free: 16.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.362, allocations: 1.188 kB / 495.5 MB, free: 16.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.169e-05/0.3621, allocations: 96.03 kB / 495.6 MB, free: 16.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.511e-05/0.3621, allocations: 79.03 kB / 495.7 MB, free: 16.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.3621, allocations: 5.922 kB / 495.7 MB, free: 16.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.859e-06/0.3621, allocations: 1.125 kB / 495.7 MB, free: 16.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.472e-05/0.3621, allocations: 4.031 kB / 495.7 MB, free: 16.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.3621, allocations: 1.797 kB / 495.7 MB, free: 16.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.025e-05/0.3622, allocations: 75.28 kB / 495.8 MB, free: 16.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3622, allocations: 0 / 495.8 MB, free: 16.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002548/0.3624, allocations: 25.64 kB / 495.8 MB, free: 16.38 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.0004739/0.3629, allocations: 263.3 kB / 496.1 MB, free: 16.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.737e-05/0.363, allocations: 57.55 kB / 496.1 MB, free: 16.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.363, allocations: 0 / 496.1 MB, free: 16.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.055e-05/0.363, allocations: 57.25 kB / 496.2 MB, free: 16.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.3632, allocations: 3.438 kB / 496.2 MB, free: 16.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001517/0.3633, allocations: 88.67 kB / 496.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.3634, allocations: 0.6714 MB / 496.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.3634, allocations: 5.406 kB / 497 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.276e-06/0.3635, allocations: 7.438 kB / 497 MB, free: 15.24 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3635, allocations: 0 / 497 MB, free: 15.24 MB / 382.1 MB Notification: Performance of Templates: time 0.003386/0.3668, allocations: 0.8021 MB / 497.8 MB, free: 15.1 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe 2>&1)