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.01017/0.01017, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.001613/0.001614, allocations: 188.9 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.752/1.752, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.3792/0.3792, allocations: 39.95 MB / 309.8 MB, free: 9.441 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.001541/0.001541, allocations: 67.91 kB / 435.8 MB, free: 2.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3442, allocations: 56.88 MB / 492.6 MB, free: 19.46 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001595/0.3458, allocations: 490.9 kB / 493.1 MB, free: 19.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005735/0.3464, allocations: 252.9 kB / 493.4 MB, free: 19.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.358e-05/0.3464, allocations: 0 / 493.4 MB, free: 19.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.903e-05/0.3465, allocations: 0 / 493.4 MB, free: 19.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.37e-06/0.3465, allocations: 4 kB / 493.4 MB, free: 19.02 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.0003119/0.3468, allocations: 53.41 kB / 493.4 MB, free: 18.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.346e-05/0.3468, allocations: 5.594 kB / 493.4 MB, free: 18.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.353e-05/0.3469, allocations: 2.109 kB / 493.4 MB, free: 18.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.724e-05/0.3469, allocations: 0.75 kB / 493.4 MB, free: 18.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.941e-05/0.3469, allocations: 1.281 kB / 493.4 MB, free: 18.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.905e-06/0.347, allocations: 0 / 493.4 MB, free: 18.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.3471, allocations: 61.17 kB / 493.5 MB, free: 18.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-06/0.3471, allocations: 1.531 kB / 493.5 MB, free: 18.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.958e-05/0.3471, allocations: 7.922 kB / 493.5 MB, free: 18.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.3473, allocations: 57.09 kB / 493.5 MB, free: 18.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3473, allocations: 5.594 kB / 493.6 MB, free: 18.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3473, allocations: 0 / 493.6 MB, free: 18.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.3473, allocations: 0 / 493.6 MB, free: 18.93 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.0002706/0.3476, allocations: 358.3 kB / 493.9 MB, free: 18.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.3476, allocations: 14.58 kB / 493.9 MB, free: 18.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.3476, allocations: 0.9375 kB / 493.9 MB, free: 18.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.925e-05/0.3477, allocations: 166 kB / 494.1 MB, free: 18.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.304e-06/0.3477, allocations: 384 / 494.1 MB, free: 18.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.3477, allocations: 1.562 kB / 494.1 MB, free: 18.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.812e-05/0.3478, allocations: 33.78 kB / 494.1 MB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.3478, allocations: 192 / 494.1 MB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.3478, allocations: 5.625 kB / 494.1 MB, free: 18.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.3478, allocations: 0 / 494.1 MB, free: 18.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.621e-05/0.3479, allocations: 6.219 kB / 494.1 MB, free: 18.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.027e-05/0.348, allocations: 152.2 kB / 494.3 MB, free: 18.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.365e-05/0.348, allocations: 20.48 kB / 494.3 MB, free: 18.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.348, allocations: 12.64 kB / 494.3 MB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-06/0.348, allocations: 5.031 kB / 494.3 MB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.3481, allocations: 58.22 kB / 494.4 MB, free: 17.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3481, allocations: 0 / 494.4 MB, free: 17.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001631/0.3482, allocations: 69.34 kB / 494.4 MB, free: 17.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.3483, allocations: 78.8 kB / 494.5 MB, free: 17.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.071e-05/0.3483, allocations: 89.86 kB / 494.6 MB, free: 17.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.947e-06/0.3483, allocations: 27.34 kB / 494.6 MB, free: 17.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.376e-05/0.3483, allocations: 84.27 kB / 494.7 MB, free: 17.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/0.3484, allocations: 4.906 kB / 494.7 MB, free: 17.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.142e-05/0.3484, allocations: 11.86 kB / 494.7 MB, free: 17.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.682e-05/0.3484, allocations: 312.4 kB / 495 MB, free: 17.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-06/0.3484, allocations: 1.094 kB / 495 MB, free: 17.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.271e-06/0.3485, allocations: 1.766 kB / 495 MB, free: 17.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.213e-05/0.3485, allocations: 64.09 kB / 495.1 MB, free: 17.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3485, allocations: 64 / 495.1 MB, free: 17.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.242e-05/0.3486, allocations: 64.84 kB / 495.2 MB, free: 17.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.3486, allocations: 32 kB / 495.2 MB, free: 17.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3486, allocations: 5 kB / 495.2 MB, free: 17.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3486, allocations: 3.938 kB / 495.2 MB, free: 17.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.773e-06/0.3486, allocations: 1.156 kB / 495.2 MB, free: 17.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.3486, allocations: 4.594 kB / 495.2 MB, free: 17.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.612e-05/0.3487, allocations: 1.531 kB / 495.2 MB, free: 17.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.3487, allocations: 0 / 495.2 MB, free: 17.09 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.066e-05/0.3487, allocations: 147.4 kB / 495.4 MB, free: 16.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.876e-06/0.3487, allocations: 2.078 kB / 495.4 MB, free: 16.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.738e-06/0.3488, allocations: 7.062 kB / 495.4 MB, free: 16.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3488, allocations: 0.6562 kB / 495.4 MB, free: 16.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.3488, allocations: 1.062 kB / 495.4 MB, free: 16.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3488, allocations: 0 / 495.4 MB, free: 16.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.507e-05/0.3488, allocations: 144.8 kB / 495.5 MB, free: 16.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3488, allocations: 2.266 kB / 495.5 MB, free: 16.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.663e-06/0.3488, allocations: 0 / 495.5 MB, free: 16.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.3489, allocations: 3.938 kB / 495.5 MB, free: 16.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.3489, allocations: 9.781 kB / 495.5 MB, free: 16.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.3489, allocations: 4 kB / 495.5 MB, free: 16.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3489, allocations: 0 / 495.5 MB, free: 16.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.261e-05/0.349, allocations: 89.83 kB / 495.6 MB, free: 16.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.024e-05/0.349, allocations: 77.77 kB / 495.7 MB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.349, allocations: 5.906 kB / 495.7 MB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.034e-05/0.349, allocations: 1.031 kB / 495.7 MB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.539e-05/0.349, allocations: 4.688 kB / 495.7 MB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.349, allocations: 5.094 kB / 495.7 MB, free: 16.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.338e-05/0.3491, allocations: 76.47 kB / 495.8 MB, free: 16.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3491, allocations: 0 / 495.8 MB, free: 16.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002619/0.3493, allocations: 25.36 kB / 495.8 MB, free: 16.43 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.0004861/0.3498, allocations: 272.7 kB / 496.1 MB, free: 16.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.551e-05/0.3499, allocations: 62.95 kB / 496.1 MB, free: 16.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3499, allocations: 0 / 496.1 MB, free: 16.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.277e-05/0.35, allocations: 55.14 kB / 496.2 MB, free: 16.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001239/0.3501, allocations: 2.438 kB / 496.2 MB, free: 16.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001526/0.3502, allocations: 83.41 kB / 496.3 MB, free: 16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.219e-05/0.3503, allocations: 0.6708 MB / 496.9 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.851e-06/0.3504, allocations: 3.938 kB / 496.9 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.414e-06/0.3504, allocations: 11.56 kB / 497 MB, free: 15.29 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3504, allocations: 1.375 kB / 497 MB, free: 15.29 MB / 382.1 MB Notification: Performance of Templates: time 0.003304/0.3537, allocations: 0.8028 MB / 497.8 MB, free: 15.15 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)