Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_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.001159/0.001159, allocations: 112.4 kB / 17.73 MB, free: 5.355 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.001366/0.001366, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 47.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08033/0.08144, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003254/0.08474, allocations: 2.166 MB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.08604, allocations: 0.7369 MB / 377.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.08617, allocations: 7.938 kB / 377.5 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.08641, allocations: 31.72 kB / 377.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/0.0866, allocations: 71.41 kB / 377.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003586/0.08697, allocations: 103.8 kB / 377.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.0873, allocations: 287.4 kB / 378 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.08746, allocations: 56.36 kB / 378.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.08766, allocations: 119.6 kB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.08786, allocations: 127.5 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.799e-05/0.08792, allocations: 20 kB / 378.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001364/0.08806, allocations: 71.89 kB / 378.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.388e-05/0.08815, allocations: 51.81 kB / 378.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.08828, allocations: 115.4 kB / 378.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003648/0.08865, allocations: 278.9 kB / 378.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.08867, allocations: 7.984 kB / 378.9 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.08868, allocations: 0 / 378.9 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.08869, allocations: 0 / 378.9 MB, free: 0.8477 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.001041/0.08974, allocations: 0.5663 MB / 379.4 MB, free: 232 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.0898, allocations: 8.031 kB / 379.4 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.4e-05/0.08987, allocations: 58.72 kB / 379.5 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.58e-05/0.08995, allocations: 28.78 kB / 379.5 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1644/0.2543, allocations: 234.6 kB / 379.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/0.2544, allocations: 12.59 kB / 379.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.542e-05/0.2545, allocations: 20.59 kB / 379.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005681/0.255, allocations: 231.7 kB / 380 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.2551, allocations: 1.375 kB / 380 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.2551, allocations: 9.25 kB / 380 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.2551, allocations: 4.719 kB / 380 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00048/0.2556, allocations: 203.1 kB / 380.2 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.2566, allocations: 0.6681 MB / 380.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005745/0.2572, allocations: 196.5 kB / 381.1 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.2575, allocations: 103.9 kB / 381.2 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.2575, allocations: 1.406 kB / 381.2 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004027/0.2579, allocations: 168.8 kB / 381.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.164e-06/0.2579, allocations: 0 / 381.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002553/0.2605, allocations: 1.15 MB / 382.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.2605, allocations: 57.12 kB / 382.6 MB, free: 11.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.2607, allocations: 196.6 kB / 382.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.2608, allocations: 32.94 kB / 382.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.719e-05/0.2609, allocations: 138.4 kB / 382.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.032e-05/0.2609, allocations: 93 kB / 383 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.261, allocations: 60.48 kB / 383.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.117e-05/0.2611, allocations: 330.5 kB / 383.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.2614, allocations: 112.6 kB / 383.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.2617, allocations: 144 kB / 383.6 MB, free: 10.94 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004807/0.2622, allocations: 251.3 kB / 383.9 MB, free: 10.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2622, allocations: 1.75 kB / 383.9 MB, free: 10.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008404/0.263, allocations: 403.2 kB / 384.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.2631, allocations: 36.33 kB / 384.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2631, allocations: 1.594 kB / 384.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002704/0.2634, allocations: 74.09 kB / 384.4 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.2636, allocations: 49.36 kB / 384.4 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003995/0.264, allocations: 0.619 MB / 385.1 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.2643, allocations: 32.34 kB / 385.1 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.2643, allocations: 12.41 kB / 385.1 MB, free: 9.988 MB / 318.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.0001206/0.2645, allocations: 144.5 kB / 385.2 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.2645, allocations: 26.16 kB / 385.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.845e-05/0.2646, allocations: 31.89 kB / 385.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2646, allocations: 2.562 kB / 385.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.2646, allocations: 2.266 kB / 385.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.2646, allocations: 0.9375 kB / 385.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.2657, allocations: 0.6706 MB / 386 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2658, allocations: 4 kB / 386 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.266, allocations: 42.11 kB / 386 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001751/0.2662, allocations: 74.91 kB / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.2662, allocations: 7.156 kB / 386.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000408/0.2666, allocations: 0.6024 MB / 386.7 MB, free: 8.785 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2667, allocations: 5.156 kB / 386.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.2677, allocations: 0.504 MB / 387.2 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.84e-05/0.2678, allocations: 110.9 kB / 387.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.58e-05/0.2678, allocations: 14.94 kB / 387.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.2681, allocations: 32.34 kB / 387.4 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.2682, allocations: 31.25 kB / 387.4 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.2682, allocations: 9.875 kB / 387.4 MB, free: 8.375 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001104/0.2684, allocations: 140.8 kB / 387.5 MB, free: 8.281 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.372e-06/0.2684, allocations: 0 / 387.5 MB, free: 8.281 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00035/0.2687, allocations: 76.27 kB / 387.6 MB, free: 8.27 MB / 318.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.001267/0.27, allocations: 1.068 MB / 388.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007432/0.2707, allocations: 331.1 kB / 389 MB, free: 7.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2708, allocations: 0 / 389 MB, free: 7.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003565/0.2711, allocations: 137.5 kB / 389.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.2715, allocations: 49.12 kB / 389.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003932/0.2755, allocations: 2.849 MB / 392 MB, free: 5.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.2757, allocations: 0.7373 MB / 392.8 MB, free: 4.633 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.2758, allocations: 20.72 kB / 392.8 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.2759, allocations: 65.92 kB / 392.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of SimCode: time 1.783e-06/0.2759, allocations: 0 / 392.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02627/0.3022, allocations: 6.126 MB / 399 MB, free: 3.062 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.73, allocations: 1.375 kB / 399 MB, free: 3.062 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches