Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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/ModelicaByExample 0.6.0/package.mo", uses=false) Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/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(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008338/0.008338, allocations: 101.5 kB / 15.73 MB, free: 6.008 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.001777/0.001777, allocations: 188.3 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.623/1.623, allocations: 205.1 MB / 222.5 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04628/0.04628, allocations: 8.113 MB / 278 MB, free: 13.06 MB / 238.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: ModelicaByExample 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.001787/0.001788, allocations: 75.89 kB / 386.7 MB, free: 9.027 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3956, allocations: 48.29 MB / 435 MB, free: 7.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003184/0.3989, allocations: 1.898 MB / 436.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003399/0.3992, allocations: 144.2 kB / 437 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.672e-05/0.3993, allocations: 2.688 kB / 437 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.6e-05/0.3994, allocations: 24.89 kB / 437 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.3995, allocations: 42.03 kB / 437.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.3997, allocations: 41.08 kB / 437.1 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002412/0.4, allocations: 169.4 kB / 437.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002516/0.4002, allocations: 96.3 kB / 437.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.139e-05/0.4003, allocations: 65.08 kB / 437.5 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.4005, allocations: 70.02 kB / 437.5 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.4005, allocations: 17.88 kB / 437.5 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.564e-05/0.4006, allocations: 16.31 kB / 437.6 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.258e-05/0.4006, allocations: 42.2 kB / 437.6 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.4008, allocations: 81.73 kB / 437.7 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003257/0.4011, allocations: 188.7 kB / 437.9 MB, free: 5.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.4011, allocations: 0 / 437.9 MB, free: 5.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4011, allocations: 4 kB / 437.9 MB, free: 5.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.4011, allocations: 3.938 kB / 437.9 MB, free: 5.949 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0006005/0.4017, allocations: 440.6 kB / 438.3 MB, free: 5.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.4018, allocations: 9.688 kB / 438.3 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.354e-05/0.4019, allocations: 21.86 kB / 438.3 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.402, allocations: 185.4 kB / 438.5 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.402, allocations: 11.47 kB / 438.5 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.73e-05/0.4021, allocations: 16.03 kB / 438.5 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003102/0.4024, allocations: 163.3 kB / 438.7 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.4024, allocations: 1.312 kB / 438.7 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.4024, allocations: 9.094 kB / 438.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.4025, allocations: 4.25 kB / 438.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002125/0.4027, allocations: 104.1 kB / 438.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.4037, allocations: 0.6801 MB / 439.5 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004375/0.4042, allocations: 225.6 kB / 439.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002118/0.4044, allocations: 95.31 kB / 439.8 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.4044, allocations: 2.125 kB / 439.8 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.4045, allocations: 35.66 kB / 439.8 MB, free: 4.398 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.4045, allocations: 0 / 439.8 MB, free: 4.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009383/0.4054, allocations: 477.3 kB / 440.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.4055, allocations: 52.56 kB / 440.4 MB, free: 3.973 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.4056, allocations: 126.1 kB / 440.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.4056, allocations: 30.86 kB / 440.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.969e-05/0.4057, allocations: 130.5 kB / 440.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.38e-05/0.4057, allocations: 60.2 kB / 440.7 MB, free: 3.656 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.461e-05/0.4058, allocations: 46.19 kB / 440.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.66e-05/0.4059, allocations: 325 kB / 441.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.06e-05/0.406, allocations: 42.38 kB / 441.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.4061, allocations: 93.25 kB / 441.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.4063, allocations: 141.8 kB / 441.3 MB, free: 3.109 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.4063, allocations: 1.094 kB / 441.3 MB, free: 3.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002577/0.4066, allocations: 180.4 kB / 441.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.4066, allocations: 6.312 kB / 441.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.535e-06/0.4066, allocations: 1.25 kB / 441.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.4066, allocations: 11.2 kB / 441.5 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.4069, allocations: 49.31 kB / 441.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.4069, allocations: 2.562 kB / 441.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.421e-05/0.4069, allocations: 9.969 kB / 441.6 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.407, allocations: 6.5 kB / 441.6 MB, free: 3 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001031/0.4071, allocations: 128.9 kB / 441.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.53e-05/0.4071, allocations: 8.688 kB / 441.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.4072, allocations: 14.19 kB / 441.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.4072, allocations: 9.797 kB / 441.8 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.4072, allocations: 4 kB / 441.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.4072, allocations: 3.938 kB / 441.8 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006146/0.4078, allocations: 493.3 kB / 442.2 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.4078, allocations: 0.875 kB / 442.2 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/0.4081, allocations: 39.39 kB / 442.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.4081, allocations: 1.031 kB / 442.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.4081, allocations: 9.438 kB / 442.3 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.4081, allocations: 0.5625 kB / 442.3 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4081, allocations: 4.5 kB / 442.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003834/0.4085, allocations: 271.7 kB / 442.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.307e-05/0.4085, allocations: 87.86 kB / 442.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.4086, allocations: 9.094 kB / 442.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.783e-05/0.4086, allocations: 0.5625 kB / 442.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.4087, allocations: 5.078 kB / 442.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.4087, allocations: 19.14 kB / 442.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.72e-05/0.4088, allocations: 96.2 kB / 442.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4088, allocations: 0 / 442.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.4091, allocations: 35.16 kB / 442.8 MB, free: 2.047 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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 9.521e-05/0.4092, allocations: 102.9 kB / 442.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002413/0.4094, allocations: 110.1 kB / 443 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4095, allocations: 0 / 443 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.624e-05/0.4095, allocations: 56.58 kB / 443.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.4098, allocations: 15.91 kB / 443.1 MB, free: 1.891 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009024/0.4107, allocations: 0.5173 MB / 443.6 MB, free: 1.504 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002011/0.4109, allocations: 0.7196 MB / 444.3 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.095e-05/0.411, allocations: 12.41 kB / 444.3 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.739e-05/0.411, allocations: 14.38 kB / 444.4 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of SimCode: time 2.01e-07/0.411, allocations: 0 / 444.4 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of Templates: time 0.004697/0.4157, allocations: 1.023 MB / 445.4 MB, free: 0.668 MB / 318.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)