Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001672/0.001672, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.001702/0.001702, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.412/1.412, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] 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.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.001956/0.001956, allocations: 68.77 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2494, allocations: 53.37 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004178/0.2536, allocations: 2.559 MB / 434.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.2557, allocations: 1.154 MB / 435.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.2558, allocations: 11.88 kB / 435.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.2562, allocations: 71.42 kB / 435.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005303/0.2567, allocations: 176.6 kB / 435.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004609/0.2571, allocations: 183.6 kB / 436.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00064/0.2578, allocations: 0.5102 MB / 436.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.258, allocations: 69.06 kB / 436.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004065/0.2584, allocations: 239.4 kB / 436.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004193/0.2588, allocations: 283.1 kB / 437.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.646e-05/0.2589, allocations: 40 kB / 437.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002876/0.2592, allocations: 135.9 kB / 437.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001684/0.2593, allocations: 119.6 kB / 437.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002114/0.2595, allocations: 203.1 kB / 437.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007312/0.2603, allocations: 0.5457 MB / 438.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2603, allocations: 3.938 kB / 438.2 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2603, allocations: 4 kB / 438.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2603, allocations: 0 / 438.2 MB, free: 0.5938 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001369/0.2617, allocations: 0.6374 MB / 438.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2617, allocations: 8.031 kB / 438.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.094e-05/0.2618, allocations: 74.72 kB / 438.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003923/0.2622, allocations: 68.67 kB / 439 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005356/0.2627, allocations: 254.6 kB / 439.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.2629, allocations: 148 kB / 439.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.099e-05/0.263, allocations: 36.33 kB / 439.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000853/0.2638, allocations: 420.8 kB / 439.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.2638, allocations: 0 / 439.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.96e-05/0.2639, allocations: 12 kB / 439.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.2639, allocations: 8 kB / 439.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.2649, allocations: 474.2 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.2668, allocations: 0.9398 MB / 441.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000903/0.2677, allocations: 364.4 kB / 441.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004734/0.2682, allocations: 206.1 kB / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.522e-05/0.2682, allocations: 8.438 kB / 441.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.2683, allocations: 39 kB / 441.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.084e-06/0.2683, allocations: 0 / 441.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005435/0.2737, allocations: 1.929 MB / 443.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.61e-05/0.2738, allocations: 85.61 kB / 443.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003794/0.2742, allocations: 268.9 kB / 444.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.108e-05/0.2742, allocations: 37.7 kB / 444.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.2743, allocations: 141.2 kB / 444.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.2745, allocations: 198.3 kB / 444.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.2747, allocations: 86.17 kB / 444.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.2748, allocations: 350.8 kB / 444.9 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004649/0.2753, allocations: 188.9 kB / 445.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.2758, allocations: 240 kB / 445.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008612/0.2767, allocations: 383.4 kB / 445.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2767, allocations: 0 / 445.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001352/0.278, allocations: 0.5965 MB / 446.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.2781, allocations: 10.75 kB / 446.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2781, allocations: 4 kB / 446.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008585/0.2789, allocations: 306.5 kB / 446.6 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/0.2792, allocations: 75.88 kB / 446.7 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004383/0.2836, allocations: 2.844 MB / 449.5 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003506/0.284, allocations: 31.91 kB / 449.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.446e-05/0.284, allocations: 23.98 kB / 449.6 MB, free: 4.789 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002558/0.2843, allocations: 165.7 kB / 449.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.362e-05/0.2844, allocations: 35.81 kB / 449.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.2845, allocations: 47.62 kB / 449.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.2845, allocations: 4 kB / 449.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2845, allocations: 4 kB / 449.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-06/0.2845, allocations: 7.984 kB / 449.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/0.2869, allocations: 1.246 MB / 451.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.2869, allocations: 0 / 451.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003353/0.2872, allocations: 67.94 kB / 451.2 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007618/0.288, allocations: 288.6 kB / 451.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.66e-05/0.288, allocations: 19.97 kB / 451.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004051/0.2921, allocations: 2.745 MB / 454.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2921, allocations: 4.062 kB / 454.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001933/0.294, allocations: 0.9408 MB / 455.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/0.2942, allocations: 79.77 kB / 455.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.103e-05/0.2943, allocations: 23.98 kB / 455.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000299/0.2946, allocations: 27.97 kB / 455.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.2948, allocations: 80.23 kB / 455.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.01e-05/0.2948, allocations: 19.98 kB / 455.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002654/0.2951, allocations: 200.5 kB / 455.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2951, allocations: 0 / 455.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006516/0.2957, allocations: 151.9 kB / 455.7 MB, free: 14.45 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003602/0.2993, allocations: 1.776 MB / 457.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.301, allocations: 0.6674 MB / 458.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.301, allocations: 0 / 458.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009029/0.3019, allocations: 464.2 kB / 458.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005014/0.3024, allocations: 48.23 kB / 458.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006587/0.309, allocations: 3.8 MB / 462.5 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004875/0.3094, allocations: 0.7968 MB / 463.3 MB, free: 6.863 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002935/0.3097, allocations: 78.91 kB / 463.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002111/0.31, allocations: 107.4 kB / 463.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.31, allocations: 0 / 463.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04807/0.358, allocations: 12.19 MB / 475.6 MB, free: 10.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.93, allocations: 10.73 kB / 475.6 MB, free: 10.56 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.323684521950781] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'gear.mode'] 13.101387010887265 13.123573227 12.859121547 Calling exit ...