Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001299, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001248, allocations: 204.6 kB / 18.73 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2535, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003355/0.2569, allocations: 2.328 MB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.2581, allocations: 0.8491 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.2583, allocations: 7.938 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002402/0.2585, allocations: 55.56 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002474/0.2588, allocations: 103.3 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000187/0.259, allocations: 79.83 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002706/0.2593, allocations: 275.3 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.2594, allocations: 80.27 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.2596, allocations: 123.5 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.2598, allocations: 127.5 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.3e-05/0.2598, allocations: 20 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.26, allocations: 87.97 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.958e-05/0.2601, allocations: 51.83 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.687e-05/0.2602, allocations: 111.4 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.2606, allocations: 313.7 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2606, allocations: 0 / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2606, allocations: 0 / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.2606, allocations: 0 / 413.3 MB, free: 12.95 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.0007702/0.2614, allocations: 0.5492 MB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.2614, allocations: 8.031 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.368e-05/0.2615, allocations: 58.72 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.2616, allocations: 28.8 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/0.262, allocations: 252 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.262, allocations: 20.75 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/0.2621, allocations: 20.33 kB / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003789/0.2625, allocations: 218.7 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.2625, allocations: 0 / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.2625, allocations: 15.94 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2625, allocations: 4 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003188/0.2628, allocations: 159 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.264, allocations: 0.7703 MB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003741/0.2643, allocations: 146.7 kB / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.2645, allocations: 75.06 kB / 415.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.2645, allocations: 352 / 415.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.2646, allocations: 34.56 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.192e-06/0.2646, allocations: 4 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001881/0.2665, allocations: 0.9967 MB / 416.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.2665, allocations: 59.34 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.2667, allocations: 214.8 kB / 416.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.2668, allocations: 33.7 kB / 417 MB, free: 8.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.784e-05/0.2668, allocations: 140.4 kB / 417.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.415e-05/0.2669, allocations: 79.36 kB / 417.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.586e-05/0.267, allocations: 49.7 kB / 417.2 MB, free: 8.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2671, allocations: 334.8 kB / 417.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.2673, allocations: 71.91 kB / 417.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.2674, allocations: 107.4 kB / 417.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.2677, allocations: 163.3 kB / 417.9 MB, free: 8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.2677, allocations: 0 / 417.9 MB, free: 8 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004528/0.2682, allocations: 270.2 kB / 418.1 MB, free: 7.727 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2682, allocations: 8 kB / 418.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2682, allocations: 0 / 418.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001954/0.2684, allocations: 56.83 kB / 418.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.2686, allocations: 43.97 kB / 418.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.2704, allocations: 1.819 MB / 420.1 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.2706, allocations: 23.97 kB / 420.1 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.2706, allocations: 4 kB / 420.1 MB, free: 5.637 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.0001273/0.2707, allocations: 148.8 kB / 420.2 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.14e-05/0.2708, allocations: 27.83 kB / 420.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.936e-05/0.2708, allocations: 29.86 kB / 420.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.2709, allocations: 0 / 420.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.2709, allocations: 3.938 kB / 420.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.2709, allocations: 0 / 420.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008233/0.2717, allocations: 0.6169 MB / 420.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2717, allocations: 0 / 420.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001654/0.2719, allocations: 31.97 kB / 421 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001452/0.272, allocations: 64.75 kB / 421 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.2721, allocations: 3.938 kB / 421 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001576/0.2736, allocations: 1.653 MB / 422.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2737, allocations: 0 / 422.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007176/0.2744, allocations: 430.3 kB / 423.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.487e-05/0.2745, allocations: 113 kB / 423.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.2745, allocations: 11.94 kB / 423.2 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001907/0.2747, allocations: 23.97 kB / 423.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.2749, allocations: 59.92 kB / 423.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.2749, allocations: 11.98 kB / 423.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001383/0.275, allocations: 152.6 kB / 423.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.275, allocations: 0 / 423.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003835/0.2754, allocations: 68 kB / 423.5 MB, free: 1.949 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.001591/0.277, allocations: 1.221 MB / 424.7 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005759/0.2776, allocations: 322.4 kB / 425.1 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2776, allocations: 0 / 425.1 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003144/0.278, allocations: 238.5 kB / 425.3 MB, free: 240 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/0.2784, allocations: 43.28 kB / 425.3 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003454/0.2818, allocations: 2.659 MB / 428 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/0.2822, allocations: 0.744 MB / 428.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.2823, allocations: 17.95 kB / 428.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.2825, allocations: 79.34 kB / 428.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2825, allocations: 0 / 428.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03018/0.3127, allocations: 6.494 MB / 435.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.77, allocations: 15.47 kB / 435.3 MB, free: 6.227 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches