Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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) 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(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 106.6 kB / 18.4 MB, free: 4.695 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.001035/0.001035, allocations: 186.2 kB / 19.33 MB, free: 3.773 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.253/1.253, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.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: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 60.3 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07124/0.07241, allocations: 46.62 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003728/0.07617, allocations: 2.809 MB / 378.6 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.07779, allocations: 0.9396 MB / 379.6 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.078, allocations: 7.938 kB / 379.6 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002184/0.07824, allocations: 63.38 kB / 379.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.07849, allocations: 107.1 kB / 379.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000482/0.07898, allocations: 219.6 kB / 380 MB, free: 444 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1452/0.2242, allocations: 0.5609 MB / 380.5 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000273/0.2245, allocations: 111.5 kB / 380.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004007/0.225, allocations: 249.2 kB / 380.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004118/0.2254, allocations: 266.8 kB / 381.1 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.2255, allocations: 48.06 kB / 381.2 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.2257, allocations: 104.2 kB / 381.3 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.2259, allocations: 105.3 kB / 381.4 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000235/0.2261, allocations: 221 kB / 381.6 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006297/0.2268, allocations: 0.5306 MB / 382.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2268, allocations: 0.9844 kB / 382.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2268, allocations: 1.469 kB / 382.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.367e-05/0.2268, allocations: 0 / 382.1 MB, free: 9.598 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001476/0.2283, allocations: 0.7335 MB / 382.9 MB, free: 9.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2283, allocations: 10.14 kB / 382.9 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.2284, allocations: 44.62 kB / 382.9 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004048/0.2289, allocations: 306.8 kB / 383.2 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.212e-05/0.2289, allocations: 26.03 kB / 383.2 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.394e-05/0.229, allocations: 40.75 kB / 383.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009235/0.2299, allocations: 444.3 kB / 383.7 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.23, allocations: 5.5 kB / 383.7 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.246e-05/0.23, allocations: 12.31 kB / 383.7 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.23, allocations: 7.844 kB / 383.7 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009492/0.231, allocations: 459.5 kB / 384.2 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.2332, allocations: 1.253 MB / 385.4 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007583/0.234, allocations: 370.8 kB / 385.8 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004529/0.2344, allocations: 250.8 kB / 386 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.472e-05/0.2345, allocations: 5.5 kB / 386 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.377e-05/0.2345, allocations: 37.56 kB / 386.1 MB, free: 8.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.873e-06/0.2345, allocations: 0 / 386.1 MB, free: 8.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.004979/0.2395, allocations: 2.256 MB / 388.3 MB, free: 6.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.648e-05/0.2395, allocations: 60.75 kB / 388.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.2397, allocations: 257.2 kB / 388.7 MB, free: 6.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.572e-05/0.2398, allocations: 40.17 kB / 388.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.157e-05/0.2399, allocations: 165.6 kB / 388.9 MB, free: 6.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.24, allocations: 170.7 kB / 389 MB, free: 6.457 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.2402, allocations: 101.5 kB / 389.1 MB, free: 6.402 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.828e-05/0.2402, allocations: 339.9 kB / 389.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004779/0.2407, allocations: 234.2 kB / 389.7 MB, free: 6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000492/0.2412, allocations: 301.8 kB / 390 MB, free: 5.859 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007539/0.242, allocations: 420.7 kB / 390.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.242, allocations: 2.812 kB / 390.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001524/0.2435, allocations: 0.7595 MB / 391.1 MB, free: 5.367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.2436, allocations: 7.344 kB / 391.2 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.2436, allocations: 1.281 kB / 391.2 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.2446, allocations: 0.5532 MB / 391.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.2449, allocations: 75.39 kB / 391.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/0.247, allocations: 3.652 MB / 395.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000499/0.2475, allocations: 77.64 kB / 395.5 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.943e-05/0.2476, allocations: 19.91 kB / 395.5 MB, free: 1.719 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: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.2477, allocations: 162.7 kB / 395.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.966e-05/0.2478, allocations: 31.56 kB / 395.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.2493, allocations: 0.7235 MB / 396.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.2493, allocations: 4.062 kB / 396.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2493, allocations: 2.719 kB / 396.5 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.2495, allocations: 156 kB / 396.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.853e-05/0.2496, allocations: 18.78 kB / 396.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004743/0.2501, allocations: 69.16 kB / 396.7 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.2503, allocations: 85.64 kB / 396.8 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002003/0.2523, allocations: 0.7874 MB / 397.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001459/0.2538, allocations: 0.9283 MB / 398.5 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004612/0.2543, allocations: 232.7 kB / 398.7 MB, free: 244 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.2544, allocations: 178 kB / 398.9 MB, free: 140 kB / 318.1 MB Notification: Performance of Backend: time 4.41e-07/0.2544, allocations: 0 / 398.9 MB, free: 140 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.2561, allocations: 0.7159 MB / 399.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of SimCode: time 0.001533/0.2576, allocations: 1.387 MB / 401 MB, free: 14.7 MB / 334.1 MB Notification: Performance of Templates: time 0.01544/0.2731, allocations: 9.226 MB / 410.2 MB, free: 10.93 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)