Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001292/0.001292, allocations: 83.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.00488/0.00488, allocations: 165.9 kB / 24.7 MB, free: 8.887 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.8331/0.8331, allocations: 158.6 MB / 186.5 MB, free: 3.035 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.636e-05/1.785e-05, allocations: 2.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002504/0.002521, allocations: 2.124 MB / 300.6 MB, free: 1.383 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.003649, allocations: 0.6942 MB / 301.2 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.003789, allocations: 7.938 kB / 301.3 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.003994, allocations: 31.7 kB / 301.3 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001863/0.004181, allocations: 75.36 kB / 301.4 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004151/0.004596, allocations: 103.7 kB / 301.5 MB, free: 476 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002679/0.004864, allocations: 267.4 kB / 301.7 MB, free: 208 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.004998, allocations: 44.52 kB / 301.8 MB, free: 168 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.00516, allocations: 159.6 kB / 301.9 MB, free: 8 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1342/0.1394, allocations: 89.75 kB / 302 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.739e-05/0.1395, allocations: 19.56 kB / 302 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.1396, allocations: 71.67 kB / 302.1 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.465e-05/0.1397, allocations: 46.72 kB / 302.1 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.731e-05/0.1397, allocations: 82.27 kB / 302.2 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.1401, allocations: 293.2 kB / 302.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1401, allocations: 3.688 kB / 302.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1401, allocations: 0 / 302.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1401, allocations: 4.562 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0005777/0.1407, allocations: 452.8 kB / 303 MB, free: 13 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1407, allocations: 13.55 kB / 303 MB, free: 13 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.13e-05/0.1408, allocations: 56.09 kB / 303 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.172e-05/0.1408, allocations: 24.48 kB / 303.1 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.1411, allocations: 173.7 kB / 303.2 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.1411, allocations: 18.72 kB / 303.2 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/0.1411, allocations: 20.31 kB / 303.3 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000365/0.1415, allocations: 222.2 kB / 303.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.1415, allocations: 8.078 kB / 303.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.1415, allocations: 8.625 kB / 303.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.1415, allocations: 8.25 kB / 303.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.1418, allocations: 163 kB / 303.7 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007157/0.1425, allocations: 0.6711 MB / 304.3 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/0.1427, allocations: 124.5 kB / 304.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.91e-05/0.1428, allocations: 65.94 kB / 304.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.1428, allocations: 2.25 kB / 304.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.162e-05/0.1428, allocations: 34.25 kB / 304.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 1.172e-06/0.1428, allocations: 0 / 304.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of matching and sorting (n=20): time 0.001055/0.1439, allocations: 0.7654 MB / 305.3 MB, free: 12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.043e-05/0.1439, allocations: 56.88 kB / 305.4 MB, free: 11.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.144, allocations: 208.9 kB / 305.6 MB, free: 11.83 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.144, allocations: 33.39 kB / 305.6 MB, free: 11.8 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.275e-05/0.1441, allocations: 143.8 kB / 305.7 MB, free: 11.69 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.1441, allocations: 73.53 kB / 305.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.498e-05/0.1442, allocations: 54.53 kB / 305.9 MB, free: 11.61 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.546e-05/0.1442, allocations: 331 kB / 306.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.666e-05/0.1443, allocations: 75.38 kB / 306.3 MB, free: 11.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.1444, allocations: 117.7 kB / 306.4 MB, free: 11.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.1446, allocations: 169.8 kB / 306.6 MB, free: 11.12 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1446, allocations: 3.938 kB / 306.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002927/0.1449, allocations: 289.4 kB / 306.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.1449, allocations: 5.844 kB / 306.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.1449, allocations: 1.062 kB / 306.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001794/0.1451, allocations: 67.84 kB / 306.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.565e-05/0.1452, allocations: 42.72 kB / 307 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002551/0.1454, allocations: 0.6203 MB / 307.6 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.571e-05/0.1455, allocations: 27.06 kB / 307.6 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.1455, allocations: 7.797 kB / 307.6 MB, free: 10.39 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: 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 (26): * Single equations (assignments): 25 * 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 6.94e-05/0.1456, allocations: 148.7 kB / 307.8 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.389e-05/0.1456, allocations: 18.67 kB / 307.8 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.455e-05/0.1457, allocations: 23.77 kB / 307.8 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1457, allocations: 6.781 kB / 307.8 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1457, allocations: 0.75 kB / 307.8 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1457, allocations: 8.219 kB / 307.8 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000491/0.1462, allocations: 0.5436 MB / 308.4 MB, free: 9.836 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1462, allocations: 4.016 kB / 308.4 MB, free: 9.836 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.842e-05/0.1463, allocations: 27.86 kB / 308.4 MB, free: 9.836 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001098/0.1464, allocations: 71.41 kB / 308.5 MB, free: 9.809 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.1464, allocations: 7.312 kB / 308.5 MB, free: 9.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002044/0.1466, allocations: 0.6209 MB / 309.1 MB, free: 9.242 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1466, allocations: 2 kB / 309.1 MB, free: 9.242 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003481/0.1469, allocations: 409 kB / 309.5 MB, free: 8.992 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.842e-05/0.147, allocations: 32.25 kB / 309.5 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.368e-05/0.147, allocations: 7.312 kB / 309.5 MB, free: 8.973 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.098e-05/0.1471, allocations: 19.81 kB / 309.5 MB, free: 8.969 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.027e-05/0.1472, allocations: 29.41 kB / 309.6 MB, free: 8.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.1472, allocations: 9.453 kB / 309.6 MB, free: 8.961 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.237e-05/0.1473, allocations: 156.3 kB / 309.7 MB, free: 8.859 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1473, allocations: 0 / 309.7 MB, free: 8.859 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002155/0.1475, allocations: 59.91 kB / 309.8 MB, free: 8.855 MB / 282.7 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 (14): * Single equations (assignments): 13 * 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.0005505/0.148, allocations: 0.9645 MB / 310.8 MB, free: 8.066 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003083/0.1483, allocations: 190 kB / 310.9 MB, free: 8.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.1483, allocations: 1.156 kB / 310.9 MB, free: 8.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.1485, allocations: 95.56 kB / 311 MB, free: 7.996 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.1487, allocations: 40.95 kB / 311.1 MB, free: 7.977 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.1508, allocations: 2.573 MB / 313.6 MB, free: 6.176 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.013e-05/0.1508, allocations: 129.6 kB / 313.8 MB, free: 6.098 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.002e-05/0.1509, allocations: 20.88 kB / 313.8 MB, free: 6.094 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.766e-05/0.151, allocations: 59.11 kB / 313.9 MB, free: 6.051 MB / 282.7 MB Notification: Performance of SimCode: time 9.22e-07/0.151, allocations: 0 / 313.9 MB, free: 6.051 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.17, allocations: 5.946 MB / 319.8 MB, free: 4.332 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/7.993, allocations: 13.31 kB / 319.8 MB, free: 4.32 MB / 282.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_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.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi [Calling sys.exit(0), Time elapsed: 9.667437618598342]