Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008247/0.0008247, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8504/0.8504, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.205e-05/1.342e-05, allocations: 10.22 kB / 318.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002115/0.002128, allocations: 2.103 MB / 320.5 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008399/0.002968, allocations: 0.6621 MB / 321.2 MB, free: 3.445 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.743e-05/0.003066, allocations: 7.938 kB / 321.2 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.003226, allocations: 39.66 kB / 321.2 MB, free: 3.398 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.003375, allocations: 71.34 kB / 321.3 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.003669, allocations: 107.7 kB / 321.4 MB, free: 3.223 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002204/0.00389, allocations: 275.3 kB / 321.7 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.004008, allocations: 44.56 kB / 321.7 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.00416, allocations: 155.6 kB / 321.9 MB, free: 2.754 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.004328, allocations: 91.75 kB / 322 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.004358, allocations: 20 kB / 322 MB, free: 2.645 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.004462, allocations: 71.94 kB / 322 MB, free: 2.574 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.752e-05/0.00452, allocations: 51.81 kB / 322.1 MB, free: 2.523 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.5e-05/0.004575, allocations: 71.83 kB / 322.2 MB, free: 2.453 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.004831, allocations: 303 kB / 322.5 MB, free: 2.156 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.004834, allocations: 4 kB / 322.5 MB, free: 2.152 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.004834, allocations: 0 / 322.5 MB, free: 2.152 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.004838, allocations: 0 / 322.5 MB, free: 2.152 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.0005455/0.005384, allocations: 453 kB / 322.9 MB, free: 1.684 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.005418, allocations: 8.922 kB / 322.9 MB, free: 1.676 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.145e-05/0.00546, allocations: 58.73 kB / 323 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.005495, allocations: 20.8 kB / 323 MB, free: 1.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.005694, allocations: 182.1 kB / 323.2 MB, free: 1.387 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.005711, allocations: 16.81 kB / 323.2 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.972e-05/0.005741, allocations: 20.38 kB / 323.2 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002649/0.006005, allocations: 223.1 kB / 323.4 MB, free: 1.117 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.006017, allocations: 192 / 323.4 MB, free: 1.117 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.006034, allocations: 20.12 kB / 323.4 MB, free: 1.098 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.00604, allocations: 4 kB / 323.5 MB, free: 1.094 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.006247, allocations: 157 kB / 323.6 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007148/0.006962, allocations: 0.68 MB / 324.3 MB, free: 216 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002405/0.007202, allocations: 118.5 kB / 324.4 MB, free: 88 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.088e-05/0.007283, allocations: 68.83 kB / 324.5 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.007297, allocations: 4 kB / 324.5 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.007322, allocations: 34.56 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.172e-06/0.007323, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001083/0.008406, allocations: 0.759 MB / 325.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.008435, allocations: 59.39 kB / 325.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.008571, allocations: 203.8 kB / 325.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.008587, allocations: 37.69 kB / 325.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.207e-05/0.008649, allocations: 140.4 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.008688, allocations: 75.41 kB / 325.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.798e-05/0.008746, allocations: 53.66 kB / 325.8 MB, free: 14.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.463e-05/0.008821, allocations: 334.8 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.008921, allocations: 79.97 kB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.009033, allocations: 111.6 kB / 326.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.009221, allocations: 184.6 kB / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.009223, allocations: 0 / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003062/0.009529, allocations: 284.6 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.009543, allocations: 4 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.009548, allocations: 0 / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.009725, allocations: 72.88 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.493e-05/0.00981, allocations: 43.92 kB / 326.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003375/0.01015, allocations: 0.6148 MB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.693e-05/0.01024, allocations: 20.02 kB / 327.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.01026, allocations: 15.98 kB / 327.6 MB, free: 12.75 MB / 298.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 8.681e-05/0.01035, allocations: 136.1 kB / 327.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.01037, allocations: 19.86 kB / 327.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.419e-05/0.0104, allocations: 25.88 kB / 327.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.01041, allocations: 7.984 kB / 327.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.01041, allocations: 0 / 327.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.01042, allocations: 3.938 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005336/0.01095, allocations: 0.5427 MB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.01095, allocations: 4 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.611e-05/0.01105, allocations: 31.92 kB / 328.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/0.01116, allocations: 76.94 kB / 328.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.01117, allocations: 4 kB / 328.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002851/0.01146, allocations: 0.6148 MB / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01146, allocations: 0 / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.01184, allocations: 413.7 kB / 329.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.01188, allocations: 31.88 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.01191, allocations: 12.06 kB / 329.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.121e-05/0.012, allocations: 19.97 kB / 329.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.04e-05/0.01206, allocations: 31.89 kB / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.01207, allocations: 7.938 kB / 329.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.445e-05/0.01215, allocations: 147.2 kB / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01215, allocations: 0 / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002164/0.01237, allocations: 63.94 kB / 329.7 MB, free: 10.46 MB / 298.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.0006135/0.01298, allocations: 0.9831 MB / 330.7 MB, free: 9.438 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003063/0.01329, allocations: 183.8 kB / 330.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01329, allocations: 0 / 330.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.01341, allocations: 98.77 kB / 331 MB, free: 9.164 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.01366, allocations: 43.53 kB / 331 MB, free: 9.125 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.01582, allocations: 2.56 MB / 333.6 MB, free: 6.445 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.893e-05/0.0159, allocations: 129.8 kB / 333.7 MB, free: 6.297 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.736e-05/0.01596, allocations: 17.95 kB / 333.7 MB, free: 6.281 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.127e-05/0.01603, allocations: 64.47 kB / 333.8 MB, free: 6.219 MB / 298.7 MB Notification: Performance of SimCode: time 6.72e-07/0.01603, allocations: 4 kB / 333.8 MB, free: 6.215 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.03627, allocations: 5.953 MB / 339.8 MB, free: 436 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.815/7.852, allocations: 3.984 kB / 339.8 MB, free: 432 kB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_4.0.0_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.60782344546169]