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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001681/0.001681, allocations: 111.5 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001844/0.001844, allocations: 214.8 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.437/1.437, allocations: 227.7 MB / 247.9 MB, free: 10.3 MB / 206.1 MB 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.001905/0.001905, allocations: 63.89 kB / 359.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2418, allocations: 50.55 MB / 410.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003705/0.2455, allocations: 2.329 MB / 412.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.2469, allocations: 0.8607 MB / 413.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.619e-05/0.247, allocations: 0 / 413.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.2472, allocations: 51.56 kB / 413.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.2475, allocations: 111.2 kB / 413.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001961/0.2477, allocations: 79.84 kB / 413.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.248, allocations: 279.3 kB / 413.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.2481, allocations: 56.3 kB / 414 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.2483, allocations: 119.6 kB / 414.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.2485, allocations: 123.5 kB / 414.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.745e-05/0.2486, allocations: 20 kB / 414.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.2487, allocations: 79.92 kB / 414.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.339e-05/0.2488, allocations: 59.75 kB / 414.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.2489, allocations: 115.5 kB / 414.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004066/0.2493, allocations: 314.2 kB / 414.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.2493, allocations: 0 / 414.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2493, allocations: 0 / 414.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.2493, allocations: 0 / 414.8 MB, free: 12.93 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.0008387/0.2502, allocations: 0.5452 MB / 415.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.839e-05/0.2502, allocations: 12.03 kB / 415.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001597/0.2504, allocations: 40.78 kB / 415.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003554/0.2507, allocations: 256 kB / 415.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.2507, allocations: 16.75 kB / 415.6 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.005e-05/0.2508, allocations: 24.33 kB / 415.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003862/0.2512, allocations: 211 kB / 415.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.2512, allocations: 4 kB / 415.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.2512, allocations: 7.984 kB / 415.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.2512, allocations: 8 kB / 415.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003314/0.2515, allocations: 163 kB / 416 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.2527, allocations: 0.7664 MB / 416.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003636/0.2531, allocations: 142.8 kB / 416.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.2532, allocations: 64.78 kB / 417 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.2532, allocations: 4.344 kB / 417 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.2533, allocations: 38.55 kB / 417 MB, free: 10.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.313e-06/0.2533, allocations: 0 / 417 MB, free: 10.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001945/0.2552, allocations: 0.9904 MB / 418 MB, free: 9.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.2553, allocations: 59.41 kB / 418.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.2555, allocations: 214.8 kB / 418.3 MB, free: 9.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.2555, allocations: 33.7 kB / 418.3 MB, free: 9.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.454e-05/0.2556, allocations: 140.4 kB / 418.5 MB, free: 8.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.166e-05/0.2557, allocations: 79.36 kB / 418.6 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.357e-05/0.2558, allocations: 49.7 kB / 418.6 MB, free: 8.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.2559, allocations: 330.8 kB / 418.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.2561, allocations: 67.97 kB / 419 MB, free: 8.348 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.2563, allocations: 111.4 kB / 419.1 MB, free: 8.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003199/0.2566, allocations: 152 kB / 419.2 MB, free: 8.066 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2566, allocations: 0 / 419.2 MB, free: 8.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005138/0.2571, allocations: 286 kB / 419.5 MB, free: 7.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.2571, allocations: 4 kB / 419.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2571, allocations: 0 / 419.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002039/0.2573, allocations: 60.77 kB / 419.6 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.2575, allocations: 35.92 kB / 419.6 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/0.2594, allocations: 1.825 MB / 421.5 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.2596, allocations: 20.05 kB / 421.5 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.2596, allocations: 15.98 kB / 421.5 MB, free: 5.684 MB / 334.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.0001359/0.2598, allocations: 125.8 kB / 421.6 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.283e-05/0.2598, allocations: 31.8 kB / 421.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.051e-05/0.2599, allocations: 29.8 kB / 421.7 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2599, allocations: 8.062 kB / 421.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.2599, allocations: 0 / 421.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2599, allocations: 0 / 421.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009136/0.2608, allocations: 0.6019 MB / 422.3 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2608, allocations: 0 / 422.3 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001796/0.261, allocations: 39.91 kB / 422.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001446/0.2612, allocations: 52.91 kB / 422.4 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.2612, allocations: 7.984 kB / 422.4 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001634/0.2628, allocations: 1.665 MB / 424 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2628, allocations: 0 / 424 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006826/0.2635, allocations: 425.3 kB / 424.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.2636, allocations: 117 kB / 424.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.2636, allocations: 8 kB / 424.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.2638, allocations: 23.92 kB / 424.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.264, allocations: 75.84 kB / 424.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.264, allocations: 4 kB / 424.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000177/0.2642, allocations: 160.6 kB / 424.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2642, allocations: 0 / 424.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004007/0.2646, allocations: 71.94 kB / 424.9 MB, free: 2 MB / 334.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.001266/0.2658, allocations: 368.3 kB / 425.3 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006015/0.2664, allocations: 302.4 kB / 425.6 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2664, allocations: 0 / 425.6 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00035/0.2668, allocations: 230.7 kB / 425.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.2672, allocations: 39.91 kB / 425.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.2685, allocations: 0.7026 MB / 426.5 MB, free: 456 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.2689, allocations: 0.744 MB / 427.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.341e-05/0.269, allocations: 29.92 kB / 427.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.606e-05/0.269, allocations: 19.44 kB / 427.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.269, allocations: 0 / 427.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of Templates: time 0.008378/0.2774, allocations: 3.993 MB / 431.3 MB, free: 11.65 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (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 & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches