Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007929/0.0007929, allocations: 79.7 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.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.0008404/0.0008404, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8759/0.8759, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.504e-05/1.707e-05, allocations: 4.953 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002841/0.002858, allocations: 2.237 MB / 326.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.003964, allocations: 0.8139 MB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.004089, allocations: 7.938 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002714/0.00436, allocations: 47.58 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002903/0.00465, allocations: 123.2 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.004874, allocations: 83.7 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002819/0.005156, allocations: 291.2 kB / 328.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.005286, allocations: 44.52 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.005513, allocations: 171.6 kB / 328.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.005669, allocations: 99.75 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.005699, allocations: 20 kB / 328.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.005818, allocations: 83.84 kB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.372e-05/0.005882, allocations: 55.75 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.947e-05/0.005941, allocations: 83.83 kB / 328.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.00625, allocations: 318.9 kB / 329 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.006253, allocations: 0 / 329 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.006254, allocations: 0 / 329 MB, free: 11.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.006259, allocations: 0 / 329 MB, free: 11.45 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006888/0.006948, allocations: 480.3 kB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.006991, allocations: 12.03 kB / 329.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.282e-05/0.007044, allocations: 50.73 kB / 329.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.00717, allocations: 40.78 kB / 329.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002606/0.007431, allocations: 185.4 kB / 329.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.007448, allocations: 12.75 kB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.65e-05/0.007485, allocations: 24.33 kB / 329.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002597/0.007744, allocations: 218.9 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.007757, allocations: 192 / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.007776, allocations: 16.09 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.007783, allocations: 8 kB / 330 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.00798, allocations: 155.3 kB / 330.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007579/0.008738, allocations: 0.6743 MB / 330.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002824/0.009021, allocations: 134.5 kB / 331 MB, free: 9.332 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.87e-05/0.009109, allocations: 61.02 kB / 331 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.009125, allocations: 4.344 kB / 331 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.009144, allocations: 42.5 kB / 331.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.353e-06/0.009146, allocations: 0 / 331.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001195/0.01034, allocations: 0.7626 MB / 331.9 MB, free: 8.398 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.01037, allocations: 59.34 kB / 331.9 MB, free: 8.328 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.01055, allocations: 222.8 kB / 332.1 MB, free: 8.102 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.01056, allocations: 37.64 kB / 332.2 MB, free: 8.059 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.947e-05/0.01063, allocations: 136.5 kB / 332.3 MB, free: 7.922 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.2e-05/0.01068, allocations: 79.38 kB / 332.4 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-05/0.01073, allocations: 45.7 kB / 332.4 MB, free: 7.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.667e-05/0.01082, allocations: 334.8 kB / 332.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.621e-05/0.01091, allocations: 71.97 kB / 332.8 MB, free: 7.387 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.01102, allocations: 107.4 kB / 332.9 MB, free: 7.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.01119, allocations: 160 kB / 333.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.01119, allocations: 0 / 333.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002995/0.01149, allocations: 266.2 kB / 333.3 MB, free: 6.832 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.01151, allocations: 11.94 kB / 333.3 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.01151, allocations: 0 / 333.3 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001529/0.01167, allocations: 60.81 kB / 333.4 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.991e-05/0.01175, allocations: 35.92 kB / 333.4 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/0.01296, allocations: 1.711 MB / 335.2 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.01306, allocations: 23.97 kB / 335.2 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.01307, allocations: 4 kB / 335.2 MB, free: 4.867 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 (25): * Single equations (assignments): 24 * 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 0.0001067/0.01318, allocations: 144.7 kB / 335.3 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.01321, allocations: 23.86 kB / 335.3 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.01325, allocations: 25.95 kB / 335.4 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/0.01325, allocations: 7.938 kB / 335.4 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.01325, allocations: 0 / 335.4 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.01326, allocations: 0 / 335.4 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005908/0.01385, allocations: 0.5509 MB / 335.9 MB, free: 4.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.01385, allocations: 0 / 335.9 MB, free: 4.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.204e-05/0.01394, allocations: 32.05 kB / 336 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.01404, allocations: 56.83 kB / 336 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.01406, allocations: 0 / 336 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009909/0.01505, allocations: 1.561 MB / 337.6 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.01505, allocations: 7.969 kB / 337.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004014/0.01545, allocations: 418.2 kB / 338 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.055e-05/0.0155, allocations: 31.92 kB / 338 MB, free: 1.812 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.01552, allocations: 8 kB / 338 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.94e-05/0.01561, allocations: 27.91 kB / 338.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.01572, allocations: 63.83 kB / 338.1 MB, free: 1.715 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.01573, allocations: 20.05 kB / 338.1 MB, free: 1.695 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.586e-05/0.01583, allocations: 156.6 kB / 338.3 MB, free: 1.543 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01583, allocations: 3.938 kB / 338.3 MB, free: 1.539 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002539/0.01608, allocations: 64 kB / 338.4 MB, free: 1.477 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 (15): * Single equations (assignments): 14 * 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.001135/0.01722, allocations: 1.232 MB / 339.6 MB, free: 372 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000418/0.01763, allocations: 305.6 kB / 339.9 MB, free: 56 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.01764, allocations: 0 / 339.9 MB, free: 56 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001941/0.01783, allocations: 218.8 kB / 340.1 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.01809, allocations: 54.19 kB / 340.2 MB, free: 15.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.02025, allocations: 2.584 MB / 342.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.565e-05/0.02035, allocations: 138.2 kB / 342.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.939e-05/0.02042, allocations: 21.95 kB / 342.9 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.27e-05/0.0205, allocations: 72.47 kB / 343 MB, free: 12.82 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.0205, allocations: 0 / 343 MB, free: 12.82 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02034/0.04084, allocations: 7.118 MB / 350.1 MB, free: 5.785 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.87/7.91, allocations: 7.797 kB / 350.1 MB, free: 5.777 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_4.1.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.71349698677659]