Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001544/0.001544, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002048/0.002048, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.002005/0.002005, allocations: 68.77 kB / 378.5 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2723, allocations: 53.37 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004441/0.2768, allocations: 2.477 MB / 434.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.2789, allocations: 1.076 MB / 435.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002076/0.2792, allocations: 7.938 kB / 435.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003476/0.2795, allocations: 67.48 kB / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000611/0.2801, allocations: 152.7 kB / 435.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004985/0.2806, allocations: 159.7 kB / 435.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006557/0.2813, allocations: 470.7 kB / 436.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.2815, allocations: 52.84 kB / 436.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.2818, allocations: 211.5 kB / 436.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003896/0.2821, allocations: 247.2 kB / 436.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.778e-05/0.2822, allocations: 36 kB / 436.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002987/0.2825, allocations: 124 kB / 437 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.2827, allocations: 111.6 kB / 437.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002281/0.2829, allocations: 179.2 kB / 437.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007668/0.2837, allocations: 499.1 kB / 437.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2837, allocations: 0 / 437.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.2837, allocations: 0 / 437.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.2837, allocations: 0 / 437.7 MB, free: 1.043 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001421/0.2851, allocations: 0.6062 MB / 438.3 MB, free: 416 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.2851, allocations: 8.031 kB / 438.3 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.642e-05/0.2852, allocations: 66.67 kB / 438.4 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003293/0.2856, allocations: 56.72 kB / 438.5 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005762/0.2861, allocations: 239.7 kB / 438.7 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/0.2863, allocations: 144 kB / 438.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-05/0.2864, allocations: 24.38 kB / 438.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007921/0.2872, allocations: 386.5 kB / 439.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.2872, allocations: 11.95 kB / 439.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.301e-05/0.2873, allocations: 16 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.2873, allocations: 8 kB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009054/0.2882, allocations: 418.2 kB / 439.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.2905, allocations: 1.208 MB / 440.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007498/0.2913, allocations: 314.5 kB / 441.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003936/0.2917, allocations: 168.7 kB / 441.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.8e-05/0.2917, allocations: 7.984 kB / 441.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.2918, allocations: 39.28 kB / 441.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.855e-06/0.2918, allocations: 0 / 441.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005004/0.2968, allocations: 1.675 MB / 443.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.321e-05/0.2969, allocations: 92.8 kB / 443.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.2972, allocations: 242.8 kB / 443.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/0.2973, allocations: 37.7 kB / 443.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.2974, allocations: 140.8 kB / 443.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.2975, allocations: 154.7 kB / 443.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.2977, allocations: 94.02 kB / 443.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.2978, allocations: 334.8 kB / 444.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003884/0.2982, allocations: 164.8 kB / 444.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.2987, allocations: 225.9 kB / 444.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000711/0.2994, allocations: 331.2 kB / 444.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.2994, allocations: 4 kB / 444.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001179/0.3006, allocations: 0.5435 MB / 445.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.3006, allocations: 4 kB / 445.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3006, allocations: 0 / 445.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008176/0.3014, allocations: 304.7 kB / 445.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.3016, allocations: 51.91 kB / 445.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004218/0.3059, allocations: 2.785 MB / 448.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/0.3061, allocations: 31.98 kB / 448.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/0.3062, allocations: 23.94 kB / 448.6 MB, free: 5.711 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002279/0.3064, allocations: 153.7 kB / 448.7 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.501e-05/0.3065, allocations: 31.88 kB / 448.8 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.3066, allocations: 54.92 kB / 448.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.3066, allocations: 4 kB / 448.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3066, allocations: 0 / 448.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.3066, allocations: 0 / 448.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.3086, allocations: 1.077 MB / 449.9 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.3086, allocations: 0 / 449.9 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002314/0.3088, allocations: 51.91 kB / 450 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007401/0.3096, allocations: 276.7 kB / 450.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.131e-05/0.3096, allocations: 19.92 kB / 450.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003966/0.3136, allocations: 2.753 MB / 453 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3136, allocations: 0 / 453 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.3152, allocations: 0.7962 MB / 453.8 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.3154, allocations: 67.81 kB / 453.9 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.373e-05/0.3154, allocations: 15.94 kB / 453.9 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.3157, allocations: 23.97 kB / 453.9 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/0.3159, allocations: 63.88 kB / 454 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.645e-05/0.3159, allocations: 15.98 kB / 454 MB, free: 128 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002642/0.3162, allocations: 188.3 kB / 454.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3162, allocations: 4.062 kB / 454.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006368/0.3168, allocations: 136 kB / 454.3 MB, free: 15.8 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.003352/0.3202, allocations: 1.646 MB / 456 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.3216, allocations: 0.5938 MB / 456.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.3216, allocations: 0 / 456.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007962/0.3224, allocations: 414.2 kB / 457 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000466/0.3229, allocations: 47.52 kB / 457 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005714/0.3286, allocations: 3.412 MB / 460.4 MB, free: 9.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004544/0.329, allocations: 0.7801 MB / 461.2 MB, free: 8.855 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002543/0.3293, allocations: 66.92 kB / 461.3 MB, free: 8.793 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.3295, allocations: 99.38 kB / 461.4 MB, free: 8.695 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3295, allocations: 0 / 461.4 MB, free: 8.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05142/0.3809, allocations: 11.03 MB / 472.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/12.82, allocations: 10.64 kB / 472.4 MB, free: 13.73 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.29954013461247] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'gear.mode'] 12.99522926704958 13.024799654 12.735609263 Calling exit ...