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.001312/0.001312, allocations: 109.1 kB / 20.22 MB, free: 1.812 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.001469/0.001469, allocations: 220.6 kB / 23.48 MB, free: 5.254 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.417/1.417, allocations: 230.5 MB / 257.1 MB, free: 8.25 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.001929/0.001929, allocations: 71.83 kB / 377.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3009, allocations: 53.32 MB / 430.4 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004129/0.3051, allocations: 2.353 MB / 432.7 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.3066, allocations: 0.8724 MB / 433.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.3067, allocations: 0 / 433.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002571/0.307, allocations: 51.56 kB / 433.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000327/0.3073, allocations: 107.2 kB / 433.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002444/0.3075, allocations: 87.83 kB / 433.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004204/0.308, allocations: 275.4 kB / 434.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.3082, allocations: 48.33 kB / 434.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002896/0.3084, allocations: 123.5 kB / 434.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.3087, allocations: 127.5 kB / 434.4 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.418e-05/0.3088, allocations: 20 kB / 434.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001852/0.3089, allocations: 79.98 kB / 434.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.504e-05/0.309, allocations: 59.75 kB / 434.6 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.3092, allocations: 115.4 kB / 434.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004832/0.3097, allocations: 311.2 kB / 435 MB, free: 2.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3097, allocations: 4 kB / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3097, allocations: 0 / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.3097, allocations: 0 / 435 MB, free: 2.637 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.001015/0.3107, allocations: 0.5414 MB / 435.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.3107, allocations: 8.031 kB / 435.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.771e-05/0.3108, allocations: 58.67 kB / 435.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.311, allocations: 32.78 kB / 435.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.3115, allocations: 256 kB / 435.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.3115, allocations: 20.69 kB / 435.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.936e-05/0.3115, allocations: 28.31 kB / 435.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004104/0.3119, allocations: 210.8 kB / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.312, allocations: 0 / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.312, allocations: 12 kB / 436.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.312, allocations: 4 kB / 436.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.3123, allocations: 163 kB / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.3135, allocations: 0.7742 MB / 437.1 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003828/0.3139, allocations: 141.9 kB / 437.2 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.3141, allocations: 64.84 kB / 437.3 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.3141, allocations: 3.938 kB / 437.3 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.3141, allocations: 38.84 kB / 437.3 MB, free: 108 kB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.332e-06/0.3141, allocations: 0 / 437.3 MB, free: 108 kB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.002043/0.3162, allocations: 1.004 MB / 438.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.3162, allocations: 51.41 kB / 438.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.3165, allocations: 222.8 kB / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.3165, allocations: 29.7 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.3166, allocations: 144.4 kB / 438.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.26e-05/0.3167, allocations: 71.38 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.698e-05/0.3168, allocations: 49.7 kB / 438.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.317, allocations: 334.8 kB / 439.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.3171, allocations: 67.97 kB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.3173, allocations: 107.4 kB / 439.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.3176, allocations: 156 kB / 439.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.3176, allocations: 0 / 439.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005257/0.3181, allocations: 278.1 kB / 439.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3181, allocations: 8 kB / 439.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.3182, allocations: 48 / 439.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002287/0.3184, allocations: 60.81 kB / 439.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.3185, allocations: 39.92 kB / 439.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002133/0.3207, allocations: 1.822 MB / 441.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/0.3209, allocations: 23.98 kB / 441.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.3209, allocations: 12.14 kB / 441.8 MB, free: 11.33 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 0.0002142/0.3211, allocations: 133.8 kB / 441.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.125e-05/0.3212, allocations: 23.84 kB / 441.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.289e-05/0.3212, allocations: 25.88 kB / 441.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.3212, allocations: 3.984 kB / 441.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3212, allocations: 4 kB / 441.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3212, allocations: 4 kB / 442 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009607/0.3222, allocations: 0.6025 MB / 442.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.3222, allocations: 4 kB / 442.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.3224, allocations: 31.92 kB / 442.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001794/0.3226, allocations: 60.88 kB / 442.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.3226, allocations: 15.92 kB / 442.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/0.3244, allocations: 1.662 MB / 444.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3244, allocations: 0 / 444.3 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007378/0.3251, allocations: 424.5 kB / 444.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.3252, allocations: 117 kB / 444.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.3253, allocations: 11.94 kB / 444.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.3255, allocations: 19.98 kB / 444.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.3256, allocations: 59.91 kB / 444.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.3256, allocations: 16 kB / 445 MB, free: 7.871 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001902/0.3258, allocations: 160.5 kB / 445.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3258, allocations: 3.938 kB / 445.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004255/0.3263, allocations: 64 kB / 445.2 MB, free: 7.648 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.00223/0.3285, allocations: 1.204 MB / 446.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000705/0.3292, allocations: 306.4 kB / 446.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3292, allocations: 0 / 446.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003684/0.3296, allocations: 226.4 kB / 446.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.33, allocations: 51.09 kB / 447 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004023/0.334, allocations: 2.669 MB / 449.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.3345, allocations: 0.744 MB / 450.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.3346, allocations: 25.94 kB / 450.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.3347, allocations: 67.41 kB / 450.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3347, allocations: 0 / 450.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03661/0.3713, allocations: 6.59 MB / 457 MB, free: 11.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.93, allocations: 7.875 kB / 457.1 MB, free: 11.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.293532320996746] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.081972396932542 12.10543956 11.791213344 Calling exit ...