Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001585/0.001585, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.001903/0.001903, allocations: 215.2 kB / 21.46 MB, free: 1.59 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.461/1.461, allocations: 230.5 MB / 254.8 MB, free: 14.9 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.001955/0.001955, allocations: 71.83 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.1014, allocations: 53.33 MB / 427 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003821/0.1052, allocations: 2.345 MB / 429.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.1068, allocations: 0.8529 MB / 430.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.1069, allocations: 11.94 kB / 430.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002809/0.1072, allocations: 55.56 kB / 430.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.1075, allocations: 99.25 kB / 430.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002109/0.1077, allocations: 83.83 kB / 430.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.108, allocations: 279.4 kB / 430.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.1082, allocations: 44.39 kB / 430.8 MB, free: 1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.1084, allocations: 127.5 kB / 430.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.1086, allocations: 127.5 kB / 431 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.1087, allocations: 20 kB / 431 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001577/0.1088, allocations: 83.92 kB / 431.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.738e-05/0.1089, allocations: 55.81 kB / 431.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.109, allocations: 115.4 kB / 431.3 MB, free: 492 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004203/0.1094, allocations: 310.8 kB / 431.6 MB, free: 180 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1094, allocations: 0 / 431.6 MB, free: 180 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1094, allocations: 0 / 431.6 MB, free: 180 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1094, allocations: 0 / 431.6 MB, free: 180 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.1889/0.2984, allocations: 0.5478 MB / 432.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.2984, allocations: 10.28 kB / 432.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.28e-05/0.2985, allocations: 51.78 kB / 432.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001891/0.2987, allocations: 34.69 kB / 432.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.2991, allocations: 257 kB / 432.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.2991, allocations: 12.53 kB / 432.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.607e-05/0.2991, allocations: 20.75 kB / 432.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003803/0.2995, allocations: 215.1 kB / 432.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.2995, allocations: 4.875 kB / 432.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/0.2996, allocations: 8.469 kB / 432.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.2996, allocations: 4.656 kB / 432.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003175/0.2999, allocations: 155.3 kB / 432.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009469/0.3008, allocations: 0.7811 MB / 433.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003702/0.3012, allocations: 138 kB / 433.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.3013, allocations: 66.8 kB / 433.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.3014, allocations: 3.938 kB / 433.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.3014, allocations: 40.84 kB / 433.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.342e-06/0.3014, allocations: 0 / 433.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001712/0.3031, allocations: 0.9891 MB / 434.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.288e-05/0.3031, allocations: 54.78 kB / 435 MB, free: 9.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.3033, allocations: 220.3 kB / 435.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.3033, allocations: 31.08 kB / 435.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/0.3034, allocations: 139.1 kB / 435.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.731e-05/0.3034, allocations: 83.97 kB / 435.4 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.597e-05/0.3035, allocations: 55.36 kB / 435.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.799e-05/0.3036, allocations: 338 kB / 435.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.3037, allocations: 67.27 kB / 435.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.3039, allocations: 111 kB / 436 MB, free: 8.863 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.3041, allocations: 152.5 kB / 436.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.3041, allocations: 1.219 kB / 436.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004454/0.3046, allocations: 275.1 kB / 436.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.3046, allocations: 5.969 kB / 436.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3046, allocations: 3.781 kB / 436.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000198/0.3048, allocations: 56.28 kB / 436.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3049, allocations: 39.03 kB / 436.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.3063, allocations: 1.818 MB / 438.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.3065, allocations: 22.12 kB / 438.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.3065, allocations: 11.45 kB / 438.3 MB, free: 7.055 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 9.615e-05/0.3066, allocations: 144.4 kB / 438.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.02e-05/0.3067, allocations: 22.02 kB / 438.5 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.82e-05/0.3067, allocations: 25.31 kB / 438.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3067, allocations: 3.656 kB / 438.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.3068, allocations: 1.156 kB / 438.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3068, allocations: 1.406 kB / 438.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007516/0.3075, allocations: 0.6114 MB / 439.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3075, allocations: 1.281 kB / 439.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.3077, allocations: 36.25 kB / 439.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001409/0.3078, allocations: 55.72 kB / 439.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.3078, allocations: 6.875 kB / 439.2 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.309, allocations: 1.667 MB / 440.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.309, allocations: 1.094 kB / 440.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006242/0.3096, allocations: 417 kB / 441.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.3097, allocations: 119.5 kB / 441.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.3098, allocations: 6.062 kB / 441.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.31, allocations: 17.22 kB / 441.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.3101, allocations: 68.8 kB / 441.5 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.3101, allocations: 7.75 kB / 441.5 MB, free: 4.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001377/0.3103, allocations: 157.2 kB / 441.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3103, allocations: 0 / 441.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004016/0.3107, allocations: 71.55 kB / 441.8 MB, free: 4.395 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001856/0.3125, allocations: 1.211 MB / 443 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005791/0.3131, allocations: 315.3 kB / 443.3 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3131, allocations: 4.125 kB / 443.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003042/0.3134, allocations: 226.3 kB / 443.5 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.3138, allocations: 38.78 kB / 443.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003358/0.3172, allocations: 2.666 MB / 446.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.3175, allocations: 0.7446 MB / 447 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.3176, allocations: 31.2 kB / 447 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.3177, allocations: 67.25 kB / 447 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3177, allocations: 1.156 kB / 447 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03497/0.3527, allocations: 6.581 MB / 453.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.19, allocations: 5.203 kB / 453.6 MB, free: 15.5 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv --start-time 0 --stop-time 2 --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_OneWayClutchDisengaged.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.797077032737434] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.367130610626191 12.395518091 12.280990113 Calling exit ...