Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001697/0.001697, allocations: 131.4 kB / 17.79 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002049/0.002049, allocations: 211.6 kB / 20.75 MB, free: 2.293 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 230.4 MB / 254 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002893/0.002893, allocations: 59.91 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1194, allocations: 53.38 MB / 426.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004872/0.1243, allocations: 2.306 MB / 428.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.1263, allocations: 0.8685 MB / 429.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002187/0.1265, allocations: 7.938 kB / 429.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003212/0.1268, allocations: 47.64 kB / 429.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004086/0.1272, allocations: 107.2 kB / 429.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.1275, allocations: 87.77 kB / 429.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004925/0.128, allocations: 291.4 kB / 430 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.1282, allocations: 44.39 kB / 430.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00037/0.1286, allocations: 131.5 kB / 430.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.1289, allocations: 135.4 kB / 430.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.451e-05/0.1289, allocations: 20 kB / 430.4 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002401/0.1292, allocations: 87.95 kB / 430.5 MB, free: 500 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.1293, allocations: 51.83 kB / 430.5 MB, free: 448 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.1295, allocations: 119.3 kB / 430.6 MB, free: 328 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007296/0.1302, allocations: 318.8 kB / 430.9 MB, free: 8 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.1302, allocations: 4 kB / 430.9 MB, free: 4 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1302, allocations: 3.938 kB / 430.9 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.1302, allocations: 0 / 430.9 MB, free: 0 / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.1918/0.322, allocations: 0.5843 MB / 431.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.3221, allocations: 10.34 kB / 431.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.434e-05/0.3221, allocations: 51.59 kB / 431.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.3223, allocations: 39.95 kB / 431.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.3227, allocations: 250.3 kB / 431.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.3227, allocations: 12.69 kB / 431.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.3228, allocations: 24.27 kB / 431.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004805/0.3232, allocations: 230.5 kB / 432.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.3233, allocations: 5.125 kB / 432.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.3233, allocations: 9.094 kB / 432.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.3233, allocations: 4.344 kB / 432.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005143/0.3238, allocations: 181.1 kB / 432.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008862/0.3247, allocations: 0.6469 MB / 433 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005529/0.3252, allocations: 193.3 kB / 433.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.3255, allocations: 93.56 kB / 433.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.3255, allocations: 9.312 kB / 433.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003456/0.3258, allocations: 157.9 kB / 433.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.693e-06/0.3259, allocations: 3.719 kB / 433.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002425/0.3283, allocations: 1.166 MB / 434.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.3283, allocations: 54.97 kB / 434.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.3285, allocations: 201.1 kB / 434.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.3285, allocations: 35.33 kB / 434.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.914e-05/0.3286, allocations: 134 kB / 435 MB, free: 9.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.867e-05/0.3287, allocations: 99.78 kB / 435.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.3288, allocations: 59.75 kB / 435.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.626e-05/0.3288, allocations: 334.8 kB / 435.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.3291, allocations: 97.66 kB / 435.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.3294, allocations: 146.9 kB / 435.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004776/0.3299, allocations: 238.1 kB / 436 MB, free: 8.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.3299, allocations: 5.344 kB / 436 MB, free: 8.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007978/0.3307, allocations: 377.2 kB / 436.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/0.3307, allocations: 33.86 kB / 436.4 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.3307, allocations: 4.312 kB / 436.4 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002041/0.3309, allocations: 54.28 kB / 436.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.3311, allocations: 55.25 kB / 436.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/0.3326, allocations: 1.801 MB / 438.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.3329, allocations: 40.17 kB / 438.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.3329, allocations: 12.78 kB / 438.3 MB, free: 6.711 MB / 350.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 (31): * Single equations (assignments): 29 * 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.000142/0.3331, allocations: 138.1 kB / 438.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.099e-05/0.3331, allocations: 23.08 kB / 438.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.485e-05/0.3332, allocations: 29.36 kB / 438.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3332, allocations: 2.406 kB / 438.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3332, allocations: 1.281 kB / 438.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3332, allocations: 5.344 kB / 438.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.3344, allocations: 0.6877 MB / 439.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3344, allocations: 0 / 439.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.3346, allocations: 41.12 kB / 439.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000158/0.3348, allocations: 60.91 kB / 439.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.3348, allocations: 6.656 kB / 439.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/0.3362, allocations: 1.649 MB / 441 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3362, allocations: 0 / 441 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.3372, allocations: 0.5033 MB / 441.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.3373, allocations: 119.5 kB / 441.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.237e-05/0.3373, allocations: 10.06 kB / 441.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/0.3376, allocations: 29.67 kB / 441.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.3378, allocations: 73.73 kB / 441.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.458e-05/0.3378, allocations: 10.42 kB / 441.7 MB, free: 4.141 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001414/0.3379, allocations: 150.7 kB / 441.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3379, allocations: 0 / 441.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004455/0.3384, allocations: 75.7 kB / 441.9 MB, free: 4.031 MB / 350.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 (21): * Single equations (assignments): 18 * 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.002313/0.3407, allocations: 1.299 MB / 443.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008806/0.3416, allocations: 432.2 kB / 443.6 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3416, allocations: 4.109 kB / 443.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004351/0.342, allocations: 257.8 kB / 443.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.3425, allocations: 52.25 kB / 444 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004095/0.3466, allocations: 2.833 MB / 446.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000201/0.3468, allocations: 0.7478 MB / 447.5 MB, free: 72 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000125/0.3469, allocations: 27.72 kB / 447.6 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.347, allocations: 72.72 kB / 447.6 MB, free: 12 kB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.347, allocations: 1.062 kB / 447.6 MB, free: 12 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04192/0.3889, allocations: 7.182 MB / 454.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.19, allocations: 1.188 kB / 454.8 MB, free: 14.32 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.852057141019031]