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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009655/0.0009655, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003465/0.003465, allocations: 162.2 kB / 24.69 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8889/0.8889, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.333e-05/1.467e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00236/0.002375, allocations: 2.073 MB / 300.5 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.003406, allocations: 0.7098 MB / 301.2 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.003521, allocations: 3.938 kB / 301.2 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.003725, allocations: 31.7 kB / 301.2 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.003888, allocations: 67.42 kB / 301.3 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003576/0.004246, allocations: 119.7 kB / 301.4 MB, free: 0.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002509/0.004496, allocations: 283.4 kB / 301.7 MB, free: 228 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.004618, allocations: 48.23 kB / 301.8 MB, free: 184 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.004805, allocations: 175.6 kB / 301.9 MB, free: 8 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1357/0.1405, allocations: 90.45 kB / 302 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.376e-05/0.1405, allocations: 20.12 kB / 302 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.1407, allocations: 72.52 kB / 302.1 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.911e-05/0.1408, allocations: 50.97 kB / 302.2 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.1409, allocations: 82.34 kB / 302.2 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004295/0.1413, allocations: 296.4 kB / 302.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.1413, allocations: 1.062 kB / 302.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1413, allocations: 3.281 kB / 302.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.1413, allocations: 0.5938 kB / 302.5 MB, free: 13.34 MB / 282.7 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.0007737/0.1421, allocations: 0.4955 MB / 303 MB, free: 12.97 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1422, allocations: 13.05 kB / 303 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.1422, allocations: 57.34 kB / 303.1 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.475e-05/0.1422, allocations: 24.27 kB / 303.1 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.1425, allocations: 182.9 kB / 303.3 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.1426, allocations: 11.69 kB / 303.3 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.829e-05/0.1426, allocations: 21.62 kB / 303.3 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003735/0.143, allocations: 231.2 kB / 303.6 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.143, allocations: 192 / 303.6 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.143, allocations: 10.22 kB / 303.6 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.143, allocations: 8.562 kB / 303.6 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000328/0.1433, allocations: 192.3 kB / 303.8 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007199/0.1441, allocations: 0.5906 MB / 304.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003767/0.1444, allocations: 190.5 kB / 304.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.1446, allocations: 93.06 kB / 304.6 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.1446, allocations: 2.219 kB / 304.6 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/0.1448, allocations: 170.1 kB / 304.8 MB, free: 12.29 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.323e-06/0.1448, allocations: 0 / 304.8 MB, free: 12.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.001434/0.1463, allocations: 0.9282 MB / 305.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.1463, allocations: 55.42 kB / 305.8 MB, free: 11.92 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.1464, allocations: 188 kB / 306 MB, free: 11.8 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.1464, allocations: 32.56 kB / 306 MB, free: 11.76 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.1465, allocations: 140.5 kB / 306.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.291e-05/0.1465, allocations: 92.39 kB / 306.2 MB, free: 11.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-05/0.1466, allocations: 63.45 kB / 306.3 MB, free: 11.53 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.675e-05/0.1466, allocations: 333.5 kB / 306.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.1468, allocations: 132.7 kB / 306.7 MB, free: 11.14 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.147, allocations: 175.9 kB / 306.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.1472, allocations: 253.1 kB / 307.2 MB, free: 10.91 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1472, allocations: 0 / 307.2 MB, free: 10.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005097/0.1477, allocations: 432.3 kB / 307.6 MB, free: 10.7 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.1478, allocations: 33.73 kB / 307.6 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1478, allocations: 1.875 kB / 307.6 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001806/0.148, allocations: 73.64 kB / 307.7 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.1481, allocations: 53.75 kB / 307.7 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003045/0.1484, allocations: 0.6116 MB / 308.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.1485, allocations: 32.31 kB / 308.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.1486, allocations: 15.48 kB / 308.4 MB, free: 10.07 MB / 282.7 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 9.351e-05/0.1486, allocations: 144.1 kB / 308.5 MB, free: 9.934 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.1487, allocations: 24.8 kB / 308.6 MB, free: 9.918 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.122e-05/0.1487, allocations: 32.73 kB / 308.6 MB, free: 9.898 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1487, allocations: 2.156 kB / 308.6 MB, free: 9.898 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.1487, allocations: 5.219 kB / 308.6 MB, free: 9.898 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1487, allocations: 1.312 kB / 308.6 MB, free: 9.898 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007354/0.1495, allocations: 0.618 MB / 309.2 MB, free: 9.508 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1495, allocations: 4 kB / 309.2 MB, free: 9.504 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.1496, allocations: 41.27 kB / 309.3 MB, free: 9.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001205/0.1497, allocations: 76.06 kB / 309.3 MB, free: 9.473 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.1497, allocations: 8.453 kB / 309.3 MB, free: 9.469 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002269/0.1499, allocations: 0.6078 MB / 310 MB, free: 8.914 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.15, allocations: 0 / 310 MB, free: 8.914 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005927/0.1505, allocations: 0.5017 MB / 310.5 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.223e-05/0.1506, allocations: 40.64 kB / 310.5 MB, free: 8.629 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.1506, allocations: 7.141 kB / 310.5 MB, free: 8.625 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.1507, allocations: 29.98 kB / 310.5 MB, free: 8.621 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.191e-05/0.1508, allocations: 34.94 kB / 310.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.1508, allocations: 6.938 kB / 310.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.073e-05/0.1509, allocations: 148.7 kB / 310.7 MB, free: 8.516 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1509, allocations: 0 / 310.7 MB, free: 8.516 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002341/0.1511, allocations: 68.53 kB / 310.8 MB, free: 8.508 MB / 282.7 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.0007807/0.1519, allocations: 1.062 MB / 311.8 MB, free: 7.715 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004961/0.1524, allocations: 339.3 kB / 312.2 MB, free: 7.555 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1524, allocations: 0 / 312.2 MB, free: 7.555 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.1526, allocations: 140.5 kB / 312.3 MB, free: 7.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.1529, allocations: 42.61 kB / 312.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.1554, allocations: 2.862 MB / 315.2 MB, free: 5.516 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.319e-05/0.1555, allocations: 131.7 kB / 315.3 MB, free: 5.438 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.203e-05/0.1555, allocations: 21.66 kB / 315.4 MB, free: 5.434 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.617e-05/0.1556, allocations: 69.2 kB / 315.4 MB, free: 5.387 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1556, allocations: 1.375 kB / 315.4 MB, free: 5.387 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01946/0.1751, allocations: 6.611 MB / 322 MB, free: 3 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.893/8.068, allocations: 5.359 kB / 322.1 MB, free: 2.996 MB / 282.7 MB " [Timeout remaining time 652] (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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaIn.phi in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,inertiaIn.phi,inertiaIn.w,oneWayClutch.phi_rel,oneWayClutch.w_rel Variables in the result:time,inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel [Calling sys.exit(0), Time elapsed: 9.801287217997015]