Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002096/0.002096, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2552, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00339/0.2587, allocations: 2.173 MB / 402.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.2599, allocations: 0.6973 MB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.26, allocations: 3.938 kB / 403.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.2602, allocations: 31.72 kB / 403.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000172/0.2604, allocations: 71.34 kB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.2607, allocations: 111.8 kB / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003346/0.2611, allocations: 275.4 kB / 403.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.2612, allocations: 60.36 kB / 403.6 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.2614, allocations: 103.6 kB / 403.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.2616, allocations: 131.5 kB / 403.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.36e-05/0.2617, allocations: 20 kB / 403.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.2619, allocations: 75.88 kB / 404 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.797e-05/0.262, allocations: 55.83 kB / 404 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.2621, allocations: 107.5 kB / 404.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003727/0.2625, allocations: 281.9 kB / 404.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2625, allocations: 0 / 404.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2625, allocations: 4 kB / 404.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.2625, allocations: 0 / 404.4 MB, free: 4.641 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.00102/0.2635, allocations: 0.5624 MB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.2636, allocations: 15.97 kB / 405 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.814e-05/0.2636, allocations: 50.73 kB / 405 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.909e-05/0.2637, allocations: 28.75 kB / 405 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.264, allocations: 240 kB / 405.3 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.2641, allocations: 12.38 kB / 405.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.241e-05/0.2641, allocations: 24.31 kB / 405.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005049/0.2646, allocations: 251.2 kB / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.2646, allocations: 3.953 kB / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.2647, allocations: 4 kB / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.2647, allocations: 8 kB / 405.6 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004937/0.2652, allocations: 191.8 kB / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.2663, allocations: 0.6798 MB / 406.4 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005932/0.2669, allocations: 202.4 kB / 406.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002392/0.2671, allocations: 92.81 kB / 406.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.2672, allocations: 4 kB / 406.7 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003784/0.2675, allocations: 171.2 kB / 406.9 MB, free: 1.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.964e-06/0.2676, allocations: 0 / 406.9 MB, free: 1.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002546/0.2701, allocations: 1.143 MB / 408 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.2702, allocations: 63.39 kB / 408.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002102/0.2704, allocations: 192 kB / 408.3 MB, free: 416 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.2704, allocations: 29.7 kB / 408.3 MB, free: 380 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.2705, allocations: 140.5 kB / 408.5 MB, free: 236 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.801e-05/0.2706, allocations: 91.2 kB / 408.6 MB, free: 144 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.2708, allocations: 61.69 kB / 408.6 MB, free: 76 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.2709, allocations: 334.8 kB / 408.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002977/0.2712, allocations: 112 kB / 409.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003127/0.2716, allocations: 148.8 kB / 409.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005381/0.2721, allocations: 246.7 kB / 409.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2721, allocations: 0 / 409.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008805/0.273, allocations: 402 kB / 409.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.829e-05/0.2731, allocations: 33.64 kB / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2731, allocations: 64 / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002497/0.2733, allocations: 76.84 kB / 409.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.2735, allocations: 55.84 kB / 410 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005839/0.2741, allocations: 0.6148 MB / 410.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.2744, allocations: 32.03 kB / 410.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.2744, allocations: 8.078 kB / 410.6 MB, free: 13.95 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: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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.0001468/0.2746, allocations: 141.7 kB / 410.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.2747, allocations: 27.84 kB / 410.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.311e-05/0.2747, allocations: 25.88 kB / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.2747, allocations: 0 / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2747, allocations: 0 / 410.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.2748, allocations: 3.984 kB / 410.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.2759, allocations: 0.6868 MB / 411.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.276, allocations: 3.938 kB / 411.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/0.2762, allocations: 39.91 kB / 411.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001738/0.2764, allocations: 76.8 kB / 411.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.2764, allocations: 4 kB / 411.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00052/0.2769, allocations: 0.607 MB / 412.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2769, allocations: 7.969 kB / 412.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.278, allocations: 0.5053 MB / 412.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.2781, allocations: 113 kB / 412.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.925e-05/0.2782, allocations: 8 kB / 412.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.2784, allocations: 27.97 kB / 412.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.183e-05/0.2785, allocations: 39.89 kB / 413 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.2785, allocations: 7.984 kB / 413 MB, free: 11.49 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.2787, allocations: 143.5 kB / 413.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2787, allocations: 0 / 413.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000329/0.279, allocations: 71.94 kB / 413.2 MB, free: 11.28 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001435/0.2805, allocations: 1.069 MB / 414.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007621/0.2812, allocations: 328 kB / 414.6 MB, free: 9.848 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2812, allocations: 4.062 kB / 414.6 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003671/0.2816, allocations: 147.8 kB / 414.7 MB, free: 9.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.282, allocations: 46.59 kB / 414.8 MB, free: 9.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004259/0.2863, allocations: 2.832 MB / 417.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.2867, allocations: 0.7402 MB / 418.3 MB, free: 5.941 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.268e-05/0.2868, allocations: 21.95 kB / 418.3 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.2869, allocations: 67.41 kB / 418.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2869, allocations: 0 / 418.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03083/0.3177, allocations: 6.12 MB / 424.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12, allocations: 0 / 424.5 MB, free: 15.89 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_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_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches