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.001313/0.001313, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001483/0.001483, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.423/1.423, allocations: 230.4 MB / 254.7 MB, free: 15 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.002114/0.002114, allocations: 63.89 kB / 373.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1125, allocations: 53.32 MB / 426.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004731/0.1172, allocations: 2.553 MB / 429.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002348/0.1196, allocations: 1.135 MB / 430.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002726/0.1198, allocations: 7.938 kB / 430.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003862/0.1202, allocations: 71.42 kB / 430.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006369/0.1209, allocations: 177.8 kB / 430.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000492/0.1213, allocations: 178.5 kB / 431 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000655/0.122, allocations: 0.5141 MB / 431.5 MB, free: 208 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.1222, allocations: 64.94 kB / 431.6 MB, free: 140 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2033/0.3254, allocations: 235 kB / 431.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005048/0.3259, allocations: 275.7 kB / 432.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.845e-05/0.326, allocations: 44.78 kB / 432.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000307/0.3264, allocations: 138.7 kB / 432.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.3265, allocations: 118.4 kB / 432.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001771/0.3267, allocations: 199.3 kB / 432.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006075/0.3273, allocations: 0.5521 MB / 433.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.3273, allocations: 0.6562 kB / 433.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3273, allocations: 3.469 kB / 433.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.3273, allocations: 4.156 kB / 433.1 MB, free: 7.539 MB / 350.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.00118/0.3285, allocations: 0.7109 MB / 433.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.3285, allocations: 10.47 kB / 433.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.161e-05/0.3286, allocations: 69.59 kB / 433.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003751/0.3289, allocations: 65.38 kB / 434 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004887/0.3294, allocations: 317.7 kB / 434.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.3295, allocations: 92.03 kB / 434.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.086e-05/0.3296, allocations: 37.55 kB / 434.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000746/0.3303, allocations: 419.5 kB / 434.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.3304, allocations: 1.156 kB / 434.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.838e-05/0.3304, allocations: 12.47 kB / 434.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.3304, allocations: 8.188 kB / 434.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009592/0.3314, allocations: 471 kB / 435.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.3331, allocations: 0.996 MB / 436.3 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008358/0.3339, allocations: 363.8 kB / 436.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004429/0.3344, allocations: 208.4 kB / 436.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.632e-05/0.3344, allocations: 11.22 kB / 436.9 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.3344, allocations: 37.78 kB / 436.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.793e-06/0.3344, allocations: 0 / 436.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.004905/0.3393, allocations: 2.147 MB / 439 MB, free: 5.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.3394, allocations: 84.33 kB / 439.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003356/0.3397, allocations: 272.2 kB / 439.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.3398, allocations: 37.19 kB / 439.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.504e-05/0.3398, allocations: 142.7 kB / 439.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.34, allocations: 195 kB / 439.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.3401, allocations: 93.12 kB / 439.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.893e-05/0.3402, allocations: 339 kB / 440.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004654/0.3407, allocations: 191.4 kB / 440.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004726/0.3411, allocations: 240.8 kB / 440.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007817/0.3419, allocations: 392.1 kB / 441 MB, free: 4.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.3419, allocations: 1.094 kB / 441 MB, free: 4.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001364/0.3433, allocations: 0.5944 MB / 441.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3433, allocations: 10.38 kB / 441.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3433, allocations: 0.8125 kB / 441.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008245/0.3441, allocations: 308.3 kB / 441.9 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003189/0.3445, allocations: 66.12 kB / 442 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003565/0.348, allocations: 2.947 MB / 444.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003437/0.3484, allocations: 28.28 kB / 444.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.133e-05/0.3484, allocations: 21.44 kB / 445 MB, free: 1.633 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.0002013/0.3486, allocations: 165 kB / 445.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.927e-05/0.3487, allocations: 36.25 kB / 445.1 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.634e-05/0.3488, allocations: 49.78 kB / 445.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3488, allocations: 6.719 kB / 445.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3488, allocations: 2.25 kB / 445.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.3488, allocations: 2.438 kB / 445.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.3511, allocations: 1.281 MB / 446.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.3511, allocations: 1.891 kB / 446.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003468/0.3514, allocations: 65.66 kB / 446.6 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007345/0.3521, allocations: 290.4 kB / 446.8 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-05/0.3522, allocations: 17.03 kB / 446.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004033/0.3562, allocations: 2.86 MB / 449.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3562, allocations: 0.9062 kB / 449.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.3582, allocations: 0.9435 MB / 450.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002596/0.3584, allocations: 159.3 kB / 450.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.203e-05/0.3585, allocations: 17.36 kB / 450.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003025/0.3588, allocations: 28.02 kB / 450.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/0.359, allocations: 74.39 kB / 450.9 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.359, allocations: 19.72 kB / 451 MB, free: 13.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003236/0.3594, allocations: 200.4 kB / 451.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3594, allocations: 5.312 kB / 451.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000722/0.3601, allocations: 150 kB / 451.3 MB, free: 13.75 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.003609/0.3637, allocations: 1.779 MB / 453.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.3652, allocations: 0.6607 MB / 453.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3652, allocations: 0 / 453.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009123/0.3662, allocations: 467.8 kB / 454.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005599/0.3667, allocations: 50.7 kB / 454.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00768/0.3744, allocations: 3.803 MB / 458 MB, free: 9.867 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005873/0.375, allocations: 0.7956 MB / 458.8 MB, free: 9.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00032/0.3753, allocations: 86.45 kB / 458.9 MB, free: 9.141 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/0.3755, allocations: 108.4 kB / 459 MB, free: 9.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3755, allocations: 5.094 kB / 459 MB, free: 9.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06182/0.4374, allocations: 11.74 MB / 470.8 MB, free: 3.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.48, allocations: 14.41 kB / 470.8 MB, free: 3.695 MB / 366.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: 14.861518224235624] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'gear.mode'] 12.626904247328639 12.639953012 12.309821404 Calling exit ...