Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.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.001692/0.001692, 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.002088/0.002088, allocations: 213.9 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.433/1.433, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.First,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_First",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.001921/0.001921, allocations: 64.77 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2446, allocations: 53.37 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.00408/0.2486, allocations: 2.388 MB / 434.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.2498, allocations: 0.6622 MB / 435 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.25, allocations: 7.938 kB / 435 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.2501, allocations: 35.59 kB / 435 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.2503, allocations: 83.33 kB / 435.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.2506, allocations: 59.86 kB / 435.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003438/0.2509, allocations: 282.6 kB / 435.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.2511, allocations: 71.25 kB / 435.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002828/0.2514, allocations: 123.6 kB / 435.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.2517, allocations: 115.4 kB / 435.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.2517, allocations: 20 kB / 435.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.838e-05/0.2518, allocations: 27.98 kB / 435.8 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.891e-05/0.2519, allocations: 51.84 kB / 435.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.252, allocations: 119.4 kB / 435.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004799/0.2525, allocations: 275.6 kB / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2525, allocations: 0 / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2525, allocations: 0 / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.2525, allocations: 4 kB / 436.2 MB, free: 2.582 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001002/0.2535, allocations: 461.5 kB / 436.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.2536, allocations: 16.03 kB / 436.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.991e-05/0.2537, allocations: 50.73 kB / 436.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.2539, allocations: 40.73 kB / 436.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004644/0.2544, allocations: 178.9 kB / 436.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.2544, allocations: 16.81 kB / 437 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/0.2545, allocations: 32.27 kB / 437 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005561/0.255, allocations: 199.3 kB / 437.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.2551, allocations: 4 kB / 437.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.2551, allocations: 12 kB / 437.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.2551, allocations: 4 kB / 437.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004308/0.2555, allocations: 141.6 kB / 437.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.2569, allocations: 0.591 MB / 437.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004596/0.2574, allocations: 173 kB / 438.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002471/0.2576, allocations: 92.81 kB / 438.2 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.2577, allocations: 3.984 kB / 438.2 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.2577, allocations: 34.56 kB / 438.2 MB, free: 440 kB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/0.2577, allocations: 0 / 438.2 MB, free: 440 kB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002794/0.2605, allocations: 0.9251 MB / 439.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.2606, allocations: 59.33 kB / 439.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.2608, allocations: 183.8 kB / 439.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.2609, allocations: 37.7 kB / 439.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.261, allocations: 140.8 kB / 439.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.2611, allocations: 115 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.2613, allocations: 53.7 kB / 439.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.2615, allocations: 330.8 kB / 440.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/0.2617, allocations: 71.97 kB / 440.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.262, allocations: 111.2 kB / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005118/0.2625, allocations: 193 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2625, allocations: 4 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008247/0.2633, allocations: 287.2 kB / 440.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.2633, allocations: 12.05 kB / 440.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2633, allocations: 4 kB / 440.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002433/0.2636, allocations: 36.84 kB / 440.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000374/0.264, allocations: 59.91 kB / 440.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.2663, allocations: 1.633 MB / 442.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.2665, allocations: 12.02 kB / 442.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.2665, allocations: 8 kB / 442.5 MB, free: 11.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002333/0.2667, allocations: 145.8 kB / 442.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.839e-05/0.2668, allocations: 27.98 kB / 442.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.591e-05/0.2669, allocations: 34.58 kB / 442.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.2669, allocations: 4 kB / 442.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.2669, allocations: 4 kB / 442.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.2669, allocations: 0 / 442.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/0.2687, allocations: 0.7617 MB / 443.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2687, allocations: 0 / 443.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004195/0.2691, allocations: 55.91 kB / 443.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001783/0.2693, allocations: 32.84 kB / 443.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.2693, allocations: 8 kB / 443.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/0.2711, allocations: 1.397 MB / 444.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2711, allocations: 0 / 444.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.2721, allocations: 482.8 kB / 445.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.784e-05/0.2722, allocations: 27.86 kB / 445.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.2722, allocations: 12 kB / 445.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.2725, allocations: 12.03 kB / 445.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.725e-05/0.2725, allocations: 15.97 kB / 445.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.2726, allocations: 8 kB / 445.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.2727, allocations: 136.4 kB / 445.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2727, allocations: 3.938 kB / 445.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006493/0.2734, allocations: 64 kB / 445.7 MB, free: 8.512 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001531/0.2749, allocations: 1.02 MB / 446.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009215/0.2758, allocations: 334.6 kB / 447 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.2758, allocations: 0 / 447 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005251/0.2764, allocations: 230.8 kB / 447.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006787/0.277, allocations: 55.16 kB / 447.3 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005392/0.2824, allocations: 2.756 MB / 450.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005447/0.283, allocations: 0.7525 MB / 450.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.2831, allocations: 26.27 kB / 450.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.2833, allocations: 83.34 kB / 450.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of SimCode: time 1.152e-06/0.2833, allocations: 0 / 450.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04157/0.3249, allocations: 5.506 MB / 456.4 MB, free: 13.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.68, allocations: 7.25 kB / 456.4 MB, free: 13.68 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.074862545356154] Failed to read output from testmodel.py, exit status != 0: ['time', 'damper.phi_rel', 'damper.w_rel', 'inertia3.phi', 'inertia3.w'] 10.77353242598474 10.788532708 10.532757258 Calling exit ...