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.001366/0.001366, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.001367/0.001367, allocations: 195.1 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.42/1.42, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001614/0.001614, allocations: 47.92 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2577, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003799/0.2615, allocations: 2.122 MB / 424.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.2628, allocations: 0.6467 MB / 425.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.2629, allocations: 7.938 kB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.2631, allocations: 31.66 kB / 425.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.2633, allocations: 67.47 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.2636, allocations: 103.8 kB / 425.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003245/0.264, allocations: 271.4 kB / 425.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.2641, allocations: 36.58 kB / 425.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.2643, allocations: 111.6 kB / 425.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.2645, allocations: 107.5 kB / 426.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.022e-05/0.2645, allocations: 20 kB / 426.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.2647, allocations: 71.89 kB / 426.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.189e-05/0.2647, allocations: 51.83 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.2648, allocations: 91.58 kB / 426.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003932/0.2652, allocations: 288.5 kB / 426.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2652, allocations: 0 / 426.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2652, allocations: 0 / 426.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.2653, allocations: 4 kB / 426.6 MB, free: 10.39 MB / 334.1 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.0008177/0.2661, allocations: 453.6 kB / 427 MB, free: 9.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.2661, allocations: 12.03 kB / 427 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.721e-05/0.2662, allocations: 50.67 kB / 427.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.649e-05/0.2662, allocations: 32.73 kB / 427.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.2666, allocations: 182.1 kB / 427.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.2666, allocations: 16.81 kB / 427.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.2666, allocations: 24.38 kB / 427.3 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004106/0.267, allocations: 221.8 kB / 427.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.267, allocations: 0 / 427.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.2671, allocations: 8 kB / 427.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.2671, allocations: 8 kB / 427.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.2674, allocations: 165 kB / 427.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.2686, allocations: 0.6798 MB / 428.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004046/0.269, allocations: 130.3 kB / 428.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.2691, allocations: 68.83 kB / 428.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.2692, allocations: 0 / 428.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.2692, allocations: 34.56 kB / 428.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 9.72e-07/0.2692, allocations: 0 / 428.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.001823/0.271, allocations: 0.7624 MB / 429.4 MB, free: 7.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.2711, allocations: 55.41 kB / 429.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.2713, allocations: 216.6 kB / 429.6 MB, free: 7.078 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.2713, allocations: 25.7 kB / 429.7 MB, free: 7.047 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.2714, allocations: 140.5 kB / 429.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.46e-05/0.2715, allocations: 75.31 kB / 429.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.693e-05/0.2716, allocations: 61.64 kB / 429.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.2718, allocations: 330.8 kB / 430.3 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.2719, allocations: 87.95 kB / 430.4 MB, free: 6.348 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.2721, allocations: 119.5 kB / 430.5 MB, free: 6.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.2724, allocations: 170.8 kB / 430.6 MB, free: 6.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2724, allocations: 0 / 430.6 MB, free: 6.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005168/0.2729, allocations: 280.6 kB / 430.9 MB, free: 5.758 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.273, allocations: 8 kB / 430.9 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.273, allocations: 4.062 kB / 430.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002417/0.2732, allocations: 72.75 kB / 431 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.2734, allocations: 35.98 kB / 431 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005418/0.2739, allocations: 0.6225 MB / 431.7 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/0.2741, allocations: 24 kB / 431.7 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.2741, allocations: 8 kB / 431.7 MB, free: 4.957 MB / 334.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: 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 0.0001373/0.2743, allocations: 149 kB / 431.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-05/0.2743, allocations: 19.86 kB / 431.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.922e-05/0.2744, allocations: 29.73 kB / 431.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2744, allocations: 7.938 kB / 431.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2744, allocations: 0 / 431.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2744, allocations: 0 / 431.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008524/0.2752, allocations: 0.5389 MB / 432.4 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.2752, allocations: 4.062 kB / 432.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/0.2754, allocations: 27.98 kB / 432.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000168/0.2755, allocations: 68.81 kB / 432.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.2756, allocations: 4 kB / 432.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004978/0.2761, allocations: 0.6186 MB / 433.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.2761, allocations: 4.031 kB / 433.1 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006345/0.2767, allocations: 413.8 kB / 433.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.212e-05/0.2768, allocations: 35.88 kB / 433.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.362e-05/0.2768, allocations: 4 kB / 433.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.277, allocations: 19.98 kB / 433.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.261e-05/0.2771, allocations: 23.95 kB / 433.6 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.2771, allocations: 7.984 kB / 433.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.2772, allocations: 155.2 kB / 433.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2772, allocations: 0 / 433.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003268/0.2776, allocations: 64 kB / 433.9 MB, free: 2.664 MB / 334.1 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.001002/0.2786, allocations: 0.9709 MB / 434.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00049/0.279, allocations: 195.7 kB / 435 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.279, allocations: 0 / 435 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.2793, allocations: 100.1 kB / 435.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003957/0.2797, allocations: 39.92 kB / 435.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003692/0.2834, allocations: 2.652 MB / 437.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.2835, allocations: 129.6 kB / 437.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.295e-05/0.2836, allocations: 21.95 kB / 438 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.2837, allocations: 63.34 kB / 438 MB, free: 14.34 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2837, allocations: 0 / 438 MB, free: 14.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03583/0.3195, allocations: 5.788 MB / 443.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/12.96, allocations: 4.062 kB / 443.8 MB, free: 8.715 MB / 350.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/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: 15.446075308136642]