Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001439/0.001439, allocations: 105 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001601/0.001601, allocations: 217.6 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.286/1.286, allocations: 230.4 MB / 256.4 MB, free: 8.426 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 67.89 kB / 376.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2152, allocations: 53.31 MB / 429.4 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004169/0.2194, allocations: 2.985 MB / 432.4 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001703/0.2211, allocations: 1.068 MB / 433.4 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.2212, allocations: 7.938 kB / 433.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002722/0.2215, allocations: 79.3 kB / 433.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003495/0.2219, allocations: 158.9 kB / 433.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000358/0.2222, allocations: 187.7 kB / 433.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006164/0.2228, allocations: 0.5969 MB / 434.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.223, allocations: 82.62 kB / 434.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003158/0.2233, allocations: 263.2 kB / 434.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003829/0.2237, allocations: 290.9 kB / 435.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.906e-05/0.2238, allocations: 48 kB / 435.1 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002011/0.224, allocations: 108 kB / 435.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.2242, allocations: 127.6 kB / 435.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.2244, allocations: 230.9 kB / 435.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006541/0.2251, allocations: 0.5918 MB / 436.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2251, allocations: 0 / 436.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2251, allocations: 0 / 436.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.2251, allocations: 0 / 436.2 MB, free: 0.6094 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00144/0.2265, allocations: 0.783 MB / 437 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.2265, allocations: 8.031 kB / 437 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.2267, allocations: 91.59 kB / 437.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.2268, allocations: 44.66 kB / 437.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004459/0.2272, allocations: 330.6 kB / 437.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.2272, allocations: 29.38 kB / 437.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.988e-05/0.2273, allocations: 40.38 kB / 437.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008325/0.2282, allocations: 446.4 kB / 437.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.2282, allocations: 7.953 kB / 437.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.2282, allocations: 12 kB / 438 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.2282, allocations: 12 kB / 438 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009673/0.2292, allocations: 451.7 kB / 438.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002294/0.2315, allocations: 1.297 MB / 439.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008562/0.2324, allocations: 387.8 kB / 440.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004701/0.2328, allocations: 222.1 kB / 440.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.2329, allocations: 12.44 kB / 440.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.2329, allocations: 39 kB / 440.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.673e-06/0.2329, allocations: 3.938 kB / 440.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.00534/0.2382, allocations: 2.249 MB / 442.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.2383, allocations: 55.84 kB / 442.7 MB, free: 9.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.2385, allocations: 266.7 kB / 442.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.2386, allocations: 45.7 kB / 443 MB, free: 9.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.2387, allocations: 184.9 kB / 443.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.2389, allocations: 186.5 kB / 443.3 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.2391, allocations: 98.19 kB / 443.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.2392, allocations: 342.8 kB / 443.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004941/0.2397, allocations: 229 kB / 444 MB, free: 8.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005423/0.2402, allocations: 287.2 kB / 444.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008008/0.2411, allocations: 391.8 kB / 444.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2411, allocations: 0 / 444.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001533/0.2426, allocations: 0.7237 MB / 445.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.2426, allocations: 8.125 kB / 445.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2426, allocations: 4 kB / 445.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.2436, allocations: 426.2 kB / 445.8 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.2439, allocations: 67.91 kB / 445.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002985/0.2469, allocations: 3.657 MB / 449.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/0.2474, allocations: 76.03 kB / 449.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.2474, allocations: 20 kB / 449.6 MB, free: 2.441 MB / 350.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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.000225/0.2476, allocations: 169.7 kB / 449.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.438e-05/0.2477, allocations: 43.7 kB / 449.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.2493, allocations: 0.7084 MB / 450.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2493, allocations: 7.938 kB / 450.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.2493, allocations: 4 kB / 450.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.2493, allocations: 7.984 kB / 450.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/0.2515, allocations: 1.282 MB / 451.8 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2515, allocations: 0 / 451.8 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002659/0.2517, allocations: 59.91 kB / 451.9 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009206/0.2527, allocations: 406.2 kB / 452.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/0.2527, allocations: 19.92 kB / 452.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002886/0.2556, allocations: 3.615 MB / 455.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2556, allocations: 0 / 455.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.2576, allocations: 1.014 MB / 456.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.2578, allocations: 164.8 kB / 457.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.53e-05/0.2578, allocations: 19.94 kB / 457.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004825/0.2583, allocations: 67.91 kB / 457.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.2585, allocations: 92.41 kB / 457.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.2586, allocations: 31.91 kB / 457.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001961/0.2587, allocations: 194 kB / 457.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2587, allocations: 0 / 457.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004763/0.2592, allocations: 116 kB / 457.6 MB, free: 10 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003364/0.2626, allocations: 1.836 MB / 459.4 MB, free: 8.258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.2641, allocations: 0.7615 MB / 460.2 MB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2641, allocations: 0 / 460.2 MB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008603/0.265, allocations: 0.5071 MB / 460.7 MB, free: 6.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.2655, allocations: 79.77 kB / 460.8 MB, free: 6.863 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006803/0.2723, allocations: 4.292 MB / 465.1 MB, free: 2.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.2727, allocations: 0.8124 MB / 465.9 MB, free: 1.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001375/0.2728, allocations: 31.28 kB / 465.9 MB, free: 1.559 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.273, allocations: 123.4 kB / 466 MB, free: 1.438 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.273, allocations: 0 / 466 MB, free: 1.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0457/0.3187, allocations: 14.01 MB / 480 MB, free: 3.562 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.52, allocations: 8.047 kB / 480.1 MB, free: 3.555 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.717375296000682]