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.001424/0.001424, allocations: 109.7 kB / 19.74 MB, free: 2.586 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.001586/0.001586, allocations: 219 kB / 22.92 MB, free: 5.555 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.283/1.283, allocations: 230.5 MB / 256.4 MB, free: 8.297 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.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.001735/0.001735, allocations: 59.89 kB / 376.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2024, allocations: 53.31 MB / 429.4 MB, free: 7.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003551/0.2059, allocations: 2.57 MB / 432 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.2076, allocations: 1.154 MB / 433.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.653e-05/0.2077, allocations: 11.88 kB / 433.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002314/0.2079, allocations: 63.42 kB / 433.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003835/0.2083, allocations: 179.8 kB / 433.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.2087, allocations: 179.6 kB / 433.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005107/0.2092, allocations: 0.5102 MB / 434 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.2093, allocations: 64.94 kB / 434.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003065/0.2096, allocations: 243.3 kB / 434.3 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000342/0.21, allocations: 279.1 kB / 434.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.1e-05/0.2101, allocations: 40 kB / 434.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002288/0.2103, allocations: 139.9 kB / 434.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.2104, allocations: 119.7 kB / 434.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.2106, allocations: 199 kB / 435.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005838/0.2112, allocations: 0.5453 MB / 435.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2112, allocations: 3.938 kB / 435.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2112, allocations: 0 / 435.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.2112, allocations: 4 kB / 435.7 MB, free: 1.199 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.00123/0.2124, allocations: 0.7088 MB / 436.4 MB, free: 452 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.2125, allocations: 12.03 kB / 436.4 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.256e-05/0.2126, allocations: 70.72 kB / 436.4 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000369/0.2129, allocations: 64.67 kB / 436.5 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004518/0.2134, allocations: 315.8 kB / 436.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.2135, allocations: 88.61 kB / 436.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.894e-05/0.2136, allocations: 40.33 kB / 436.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007712/0.2143, allocations: 424.8 kB / 437.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.2144, allocations: 0 / 437.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.2144, allocations: 16 kB / 437.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.2144, allocations: 8 kB / 437.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009711/0.2154, allocations: 466.3 kB / 437.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001642/0.217, allocations: 0.9932 MB / 438.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008107/0.2178, allocations: 380.6 kB / 439.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/0.2183, allocations: 202.1 kB / 439.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.2183, allocations: 8.438 kB / 439.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.2183, allocations: 39 kB / 439.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.443e-06/0.2183, allocations: 0 / 439.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.00509/0.2234, allocations: 2.137 MB / 441.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.2235, allocations: 89.66 kB / 441.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003202/0.2238, allocations: 276.9 kB / 441.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.171e-05/0.2239, allocations: 37.7 kB / 442 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.014e-05/0.2239, allocations: 137.2 kB / 442.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.2241, allocations: 194.4 kB / 442.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.2242, allocations: 94.17 kB / 442.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.2244, allocations: 338.8 kB / 442.7 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000443/0.2248, allocations: 193 kB / 442.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.2253, allocations: 252.6 kB / 443.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008198/0.2261, allocations: 380.4 kB / 443.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2261, allocations: 0 / 443.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001247/0.2274, allocations: 0.598 MB / 444.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.2274, allocations: 11.94 kB / 444.1 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.2274, allocations: 0 / 444.1 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007563/0.2281, allocations: 310.5 kB / 444.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.2284, allocations: 67.88 kB / 444.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003814/0.2323, allocations: 2.943 MB / 447.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.2325, allocations: 36 kB / 447.5 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.114e-05/0.2326, allocations: 23.94 kB / 447.5 MB, free: 4.82 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.0001869/0.2328, allocations: 161.8 kB / 447.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.652e-05/0.2329, allocations: 31.81 kB / 447.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.977e-05/0.233, allocations: 47.61 kB / 447.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.233, allocations: 8 kB / 447.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.233, allocations: 0 / 447.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-06/0.233, allocations: 4 kB / 447.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002161/0.2351, allocations: 1.285 MB / 449 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2351, allocations: 0 / 449 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003178/0.2355, allocations: 67.88 kB / 449.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000684/0.2361, allocations: 288.6 kB / 449.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.904e-05/0.2362, allocations: 19.98 kB / 449.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003583/0.2398, allocations: 2.854 MB / 452.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2398, allocations: 0 / 452.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.2415, allocations: 0.9468 MB / 453.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.2417, allocations: 156.8 kB / 453.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.2418, allocations: 15.94 kB / 453.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002984/0.2421, allocations: 27.97 kB / 453.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.2422, allocations: 84.2 kB / 453.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.633e-05/0.2423, allocations: 20.05 kB / 453.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002389/0.2425, allocations: 204.5 kB / 453.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2425, allocations: 0 / 453.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005595/0.2431, allocations: 147.9 kB / 453.9 MB, free: 14.23 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.003268/0.2463, allocations: 1.783 MB / 455.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.2477, allocations: 0.6682 MB / 456.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2477, allocations: 0 / 456.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000799/0.2485, allocations: 459.6 kB / 456.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.2489, allocations: 52.34 kB / 456.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005882/0.2548, allocations: 3.794 MB / 460.6 MB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.2552, allocations: 0.8046 MB / 461.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.2554, allocations: 74.92 kB / 461.5 MB, free: 6.551 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.2556, allocations: 107.4 kB / 461.6 MB, free: 6.445 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2556, allocations: 0 / 461.6 MB, free: 6.445 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03983/0.2955, allocations: 11.87 MB / 473.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.82, allocations: 6.609 kB / 473.5 MB, free: 10.67 MB / 382.1 MB " [Timeout remaining time 649] (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 --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: 12.997455536002235]