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.001435/0.001435, allocations: 105.5 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.001635/0.001635, allocations: 218.1 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.29/1.29, allocations: 230.5 MB / 256.4 MB, free: 8.422 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.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.00179/0.00179, allocations: 67.89 kB / 376.1 MB, free: 4.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2067, allocations: 53.32 MB / 429.4 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003643/0.2103, allocations: 2.481 MB / 431.9 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.2119, allocations: 1.065 MB / 432.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.212, allocations: 11.94 kB / 432.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002431/0.2123, allocations: 67.48 kB / 433 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003623/0.2127, allocations: 148 kB / 433.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003348/0.213, allocations: 159.7 kB / 433.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004612/0.2134, allocations: 478.6 kB / 433.8 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.2136, allocations: 44.73 kB / 433.8 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.2138, allocations: 203.5 kB / 434 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003186/0.2141, allocations: 251.2 kB / 434.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.618e-05/0.2142, allocations: 40 kB / 434.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002181/0.2144, allocations: 123.9 kB / 434.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.2145, allocations: 115.7 kB / 434.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.2147, allocations: 171.2 kB / 434.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005484/0.2152, allocations: 0.4947 MB / 435.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.2152, allocations: 4 kB / 435.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2152, allocations: 0 / 435.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.2153, allocations: 0 / 435.2 MB, free: 1.59 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.001135/0.2164, allocations: 0.6699 MB / 435.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.2164, allocations: 8.031 kB / 435.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.885e-05/0.2165, allocations: 70.72 kB / 436 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000284/0.2168, allocations: 52.67 kB / 436 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.2172, allocations: 304.6 kB / 436.3 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.2173, allocations: 88.52 kB / 436.4 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.683e-05/0.2174, allocations: 24.38 kB / 436.4 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006938/0.2181, allocations: 389.1 kB / 436.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.2181, allocations: 4 kB / 436.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.2181, allocations: 8 kB / 436.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.2182, allocations: 8 kB / 436.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008333/0.219, allocations: 417.9 kB / 437.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.221, allocations: 1.273 MB / 438.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006635/0.2216, allocations: 322.4 kB / 438.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003595/0.222, allocations: 164.8 kB / 439 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.222, allocations: 4 kB / 439 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.222, allocations: 39.27 kB / 439 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.773e-06/0.222, allocations: 4 kB / 439 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004603/0.2266, allocations: 1.898 MB / 440.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.2267, allocations: 88.86 kB / 441 MB, free: 11.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003004/0.227, allocations: 242.4 kB / 441.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.371e-05/0.227, allocations: 33.7 kB / 441.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.818e-05/0.2271, allocations: 140.8 kB / 441.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.2273, allocations: 154.9 kB / 441.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.2274, allocations: 86.06 kB / 441.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2275, allocations: 338.8 kB / 442 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.2279, allocations: 168.8 kB / 442.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004148/0.2283, allocations: 225.8 kB / 442.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006847/0.229, allocations: 339.2 kB / 442.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.229, allocations: 3.938 kB / 442.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001105/0.2301, allocations: 0.5436 MB / 443.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2301, allocations: 4 kB / 443.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2301, allocations: 3.984 kB / 443.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007658/0.2309, allocations: 300.6 kB / 443.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.2311, allocations: 51.91 kB / 443.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003752/0.2349, allocations: 2.897 MB / 446.5 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/0.2351, allocations: 28.06 kB / 446.5 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.2352, allocations: 27.98 kB / 446.5 MB, free: 5.68 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.0001755/0.2354, allocations: 149.7 kB / 446.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.986e-05/0.2354, allocations: 27.81 kB / 446.7 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.087e-05/0.2355, allocations: 46.98 kB / 446.8 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2355, allocations: 7.938 kB / 446.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.2355, allocations: 0 / 446.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2355, allocations: 3.984 kB / 446.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.2373, allocations: 1.101 MB / 447.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2373, allocations: 0 / 447.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.2376, allocations: 51.89 kB / 447.9 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000697/0.2383, allocations: 280.8 kB / 448.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.2383, allocations: 19.92 kB / 448.2 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003598/0.2419, allocations: 2.845 MB / 451.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2419, allocations: 0 / 451.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.2434, allocations: 0.8043 MB / 451.9 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.2436, allocations: 144.9 kB / 452 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.556e-05/0.2436, allocations: 15.94 kB / 452 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.2439, allocations: 28.09 kB / 452.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.244, allocations: 63.91 kB / 452.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.244, allocations: 11.98 kB / 452.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002193/0.2443, allocations: 184.8 kB / 452.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2443, allocations: 0 / 452.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005692/0.2448, allocations: 139.9 kB / 452.4 MB, free: 15.53 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.003027/0.2479, allocations: 1.662 MB / 454.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.2491, allocations: 0.5901 MB / 454.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2491, allocations: 8.062 kB / 454.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007017/0.2498, allocations: 409.1 kB / 455.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.2502, allocations: 39.77 kB / 455.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005184/0.2554, allocations: 3.398 MB / 458.5 MB, free: 9.402 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.2558, allocations: 0.7839 MB / 459.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002127/0.256, allocations: 78.91 kB / 459.4 MB, free: 8.512 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.2562, allocations: 87.39 kB / 459.5 MB, free: 8.426 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2562, allocations: 0 / 459.5 MB, free: 8.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04163/0.2978, allocations: 10.73 MB / 470.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.03, allocations: 25.05 kB / 470.2 MB, free: 13.76 MB / 382.1 MB " [Timeout remaining time 649] (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 --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: 13.229755598003976]