Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.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.TestStreams,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008941/0.008941, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001288/0.001288, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.728/1.728, allocations: 205.1 MB / 222.6 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.4006/0.4006, allocations: 39.93 MB / 309.8 MB, free: 9.324 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.001704/0.001704, allocations: 71.89 kB / 435.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3808, allocations: 56.88 MB / 492.6 MB, free: 19.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001766/0.3826, allocations: 487.1 kB / 493.1 MB, free: 19.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007749/0.3834, allocations: 302.1 kB / 493.4 MB, free: 19.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.979e-05/0.3834, allocations: 4 kB / 493.4 MB, free: 19.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.589e-05/0.3834, allocations: 0 / 493.4 MB, free: 19.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.151e-06/0.3835, allocations: 0 / 493.4 MB, free: 19.01 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:221:3-287:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009417/0.3844, allocations: 94.25 kB / 493.5 MB, free: 18.97 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.618e-05/0.3845, allocations: 1.859 kB / 493.5 MB, free: 18.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.218e-05/0.3845, allocations: 1.891 kB / 493.5 MB, free: 18.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.921e-05/0.3845, allocations: 1.406 kB / 493.5 MB, free: 18.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.311e-05/0.3846, allocations: 5.344 kB / 493.5 MB, free: 18.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.972e-06/0.3846, allocations: 0 / 493.5 MB, free: 18.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002406/0.3848, allocations: 106.2 kB / 493.6 MB, free: 18.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.306e-06/0.3848, allocations: 0 / 493.6 MB, free: 18.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.246e-05/0.3849, allocations: 12.98 kB / 493.6 MB, free: 18.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001936/0.3851, allocations: 87.91 kB / 493.7 MB, free: 18.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.3851, allocations: 0.6562 kB / 493.7 MB, free: 18.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3851, allocations: 0 / 493.7 MB, free: 18.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.517e-06/0.3851, allocations: 0 / 493.7 MB, free: 18.89 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.0003682/0.3855, allocations: 361.1 kB / 494.1 MB, free: 18.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3855, allocations: 12.73 kB / 494.1 MB, free: 18.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.391e-05/0.3856, allocations: 3.375 kB / 494.1 MB, free: 18.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.373e-05/0.3856, allocations: 165.2 kB / 494.2 MB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.3857, allocations: 8.297 kB / 494.3 MB, free: 18.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.3857, allocations: 5.5 kB / 494.3 MB, free: 18.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.013e-05/0.3858, allocations: 30.14 kB / 494.3 MB, free: 18.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.3858, allocations: 4.125 kB / 494.3 MB, free: 18.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.3858, allocations: 5.359 kB / 494.3 MB, free: 18.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.3858, allocations: 0 / 494.3 MB, free: 18.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.896e-05/0.3858, allocations: 1.281 kB / 494.3 MB, free: 18.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001212/0.386, allocations: 148.9 kB / 494.4 MB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.532e-05/0.386, allocations: 29.33 kB / 494.5 MB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.764e-05/0.386, allocations: 9.031 kB / 494.5 MB, free: 18.01 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.3861, allocations: 0 / 494.5 MB, free: 18.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/0.3861, allocations: 58.22 kB / 494.5 MB, free: 17.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.3861, allocations: 0 / 494.5 MB, free: 17.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001734/0.3863, allocations: 66.5 kB / 494.6 MB, free: 17.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.3863, allocations: 81.62 kB / 494.7 MB, free: 17.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.166e-05/0.3864, allocations: 89.98 kB / 494.8 MB, free: 17.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.3864, allocations: 35.58 kB / 494.8 MB, free: 17.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.592e-05/0.3864, allocations: 80.14 kB / 494.9 MB, free: 17.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.652e-05/0.3864, allocations: 0 / 494.9 MB, free: 17.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.3865, allocations: 13.77 kB / 494.9 MB, free: 17.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.443e-05/0.3866, allocations: 311.6 kB / 495.2 MB, free: 17.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.475e-05/0.3866, allocations: 1 kB / 495.2 MB, free: 17.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.206e-06/0.3866, allocations: 1.609 kB / 495.2 MB, free: 17.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.418e-05/0.3866, allocations: 68.45 kB / 495.3 MB, free: 17.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3866, allocations: 0 / 495.3 MB, free: 17.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.218e-05/0.3867, allocations: 60.14 kB / 495.3 MB, free: 17.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.3868, allocations: 32.89 kB / 495.4 MB, free: 17.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3868, allocations: 0 / 495.4 MB, free: 17.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3868, allocations: 5.125 kB / 495.4 MB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.196e-06/0.3868, allocations: 4.641 kB / 495.4 MB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3868, allocations: 0 / 495.4 MB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.812e-05/0.3868, allocations: 1.219 kB / 495.4 MB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.3868, allocations: 0.7031 kB / 495.4 MB, free: 17.05 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.012e-05/0.3869, allocations: 138.6 kB / 495.5 MB, free: 16.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-06/0.3869, allocations: 5.719 kB / 495.5 MB, free: 16.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.322e-05/0.3869, allocations: 8.156 kB / 495.5 MB, free: 16.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.387, allocations: 4.734 kB / 495.5 MB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.387, allocations: 5.156 kB / 495.5 MB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.387, allocations: 0 / 495.5 MB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.712e-05/0.387, allocations: 144.9 kB / 495.7 MB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.387, allocations: 1.812 kB / 495.7 MB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3871, allocations: 0 / 495.7 MB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.3871, allocations: 4 kB / 495.7 MB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.3871, allocations: 5.688 kB / 495.7 MB, free: 16.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.3871, allocations: 1.594 kB / 495.7 MB, free: 16.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3871, allocations: 3.938 kB / 495.7 MB, free: 16.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.627e-05/0.3872, allocations: 88.16 kB / 495.8 MB, free: 16.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.619e-05/0.3872, allocations: 78.52 kB / 495.9 MB, free: 16.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.3872, allocations: 9.906 kB / 495.9 MB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.088e-05/0.3873, allocations: 4.031 kB / 495.9 MB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.756e-05/0.3873, allocations: 2.047 kB / 495.9 MB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.3873, allocations: 0 / 495.9 MB, free: 16.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.805e-05/0.3873, allocations: 76.19 kB / 495.9 MB, free: 16.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3873, allocations: 0 / 495.9 MB, free: 16.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003215/0.3876, allocations: 35.03 kB / 496 MB, free: 16.39 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.0005227/0.3882, allocations: 274.7 kB / 496.2 MB, free: 16.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001147/0.3883, allocations: 62.59 kB / 496.3 MB, free: 16.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3883, allocations: 0 / 496.3 MB, free: 16.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.677e-05/0.3883, allocations: 56.22 kB / 496.4 MB, free: 16.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.3885, allocations: 6.656 kB / 496.4 MB, free: 16.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000165/0.3887, allocations: 89.56 kB / 496.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.3888, allocations: 0.6751 MB / 497.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.33e-06/0.3888, allocations: 0 / 497.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.026e-05/0.3888, allocations: 12.75 kB / 497.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3888, allocations: 0 / 497.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of Templates: time 0.004209/0.393, allocations: 0.9816 MB / 498.1 MB, free: 15.1 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe 2>&1)