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.001748/0.001748, allocations: 124.4 kB / 17.79 MB, free: 5.277 MB / 14.72 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.002075/0.002075, allocations: 203.3 kB / 20.74 MB, free: 2.336 MB / 14.72 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 1.526/1.526, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001473/0.001473, allocations: 39.94 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1076, allocations: 53.33 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004464/0.112, allocations: 2.349 MB / 428.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.1137, allocations: 0.8645 MB / 429.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.1138, allocations: 4 kB / 429.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002574/0.114, allocations: 47.58 kB / 429.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002829/0.1143, allocations: 111.2 kB / 429.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.1145, allocations: 83.83 kB / 429.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.1149, allocations: 279.4 kB / 430 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.115, allocations: 44.38 kB / 430.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002278/0.1153, allocations: 115.6 kB / 430.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002463/0.1155, allocations: 135.4 kB / 430.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.124e-05/0.1156, allocations: 20 kB / 430.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.1158, allocations: 83.97 kB / 430.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.794e-05/0.1159, allocations: 55.83 kB / 430.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.116, allocations: 119.4 kB / 430.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004766/0.1165, allocations: 310.8 kB / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1165, allocations: 0 / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1165, allocations: 0 / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.1165, allocations: 0 / 430.9 MB, free: 204 kB / 350.1 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.2148/0.3312, allocations: 0.5409 MB / 431.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.3313, allocations: 10.08 kB / 431.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.465e-05/0.3313, allocations: 53.56 kB / 431.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.3316, allocations: 34.36 kB / 431.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.332, allocations: 253.7 kB / 431.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.332, allocations: 14.69 kB / 431.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.332, allocations: 27.95 kB / 431.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00042/0.3325, allocations: 214.3 kB / 432 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.3325, allocations: 4.625 kB / 432 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.3325, allocations: 6.719 kB / 432 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.3325, allocations: 6.203 kB / 432 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000381/0.3329, allocations: 154.6 kB / 432.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.3341, allocations: 0.772 MB / 433 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000425/0.3346, allocations: 146.5 kB / 433.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.3347, allocations: 62.16 kB / 433.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.3347, allocations: 5.094 kB / 433.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.3347, allocations: 36.22 kB / 433.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.502e-06/0.3347, allocations: 4.25 kB / 433.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001821/0.3366, allocations: 1.001 MB / 434.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.3366, allocations: 53.75 kB / 434.3 MB, free: 7.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.3368, allocations: 219.5 kB / 434.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.3368, allocations: 31.05 kB / 434.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.464e-05/0.3369, allocations: 138.1 kB / 434.6 MB, free: 6.938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.996e-05/0.337, allocations: 77.55 kB / 434.7 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.666e-05/0.3371, allocations: 52.17 kB / 434.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.911e-05/0.3371, allocations: 332 kB / 435.1 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.3373, allocations: 70.14 kB / 435.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.3374, allocations: 118.8 kB / 435.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.3377, allocations: 155.8 kB / 435.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3377, allocations: 3.438 kB / 435.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004722/0.3382, allocations: 270.4 kB / 435.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.3382, allocations: 8.031 kB / 435.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.3382, allocations: 1.062 kB / 435.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002186/0.3384, allocations: 58.7 kB / 435.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.3386, allocations: 35.42 kB / 435.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/0.3402, allocations: 1.824 MB / 437.6 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.3404, allocations: 22.25 kB / 437.6 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.3404, allocations: 7.406 kB / 437.6 MB, free: 4.914 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: 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.0001155/0.3405, allocations: 142 kB / 437.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.587e-05/0.3406, allocations: 23.25 kB / 437.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.353e-05/0.3406, allocations: 26.05 kB / 437.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3406, allocations: 2.312 kB / 437.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.3406, allocations: 0 / 437.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3406, allocations: 3.438 kB / 437.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008201/0.3415, allocations: 0.6066 MB / 438.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3415, allocations: 1.469 kB / 438.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.3416, allocations: 35.34 kB / 438.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001639/0.3418, allocations: 55.02 kB / 438.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.3418, allocations: 7.969 kB / 438.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001323/0.3432, allocations: 1.664 MB / 440.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3432, allocations: 2.531 kB / 440.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006658/0.3438, allocations: 421.4 kB / 440.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.638e-05/0.3439, allocations: 117.3 kB / 440.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/0.3439, allocations: 6.812 kB / 440.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.3441, allocations: 24.14 kB / 440.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.3443, allocations: 71.33 kB / 440.8 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.3443, allocations: 6.391 kB / 440.8 MB, free: 2.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001476/0.3445, allocations: 157.6 kB / 441 MB, free: 2.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3445, allocations: 1.25 kB / 441 MB, free: 2.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000426/0.3449, allocations: 72.92 kB / 441.1 MB, free: 2.535 MB / 350.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 (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.001973/0.3469, allocations: 1.211 MB / 442.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006444/0.3475, allocations: 305.1 kB / 442.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3475, allocations: 4.156 kB / 442.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003198/0.3478, allocations: 219.8 kB / 442.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004268/0.3483, allocations: 50.94 kB / 442.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003581/0.3518, allocations: 2.667 MB / 445.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.3523, allocations: 0.7461 MB / 446.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.3524, allocations: 28.23 kB / 446.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.3525, allocations: 66.53 kB / 446.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of SimCode: time 1.453e-06/0.3525, allocations: 1.031 kB / 446.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03932/0.3918, allocations: 6.561 MB / 452.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.94, allocations: 13.66 kB / 452.9 MB, free: 13.73 MB / 366.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 14.719377220011665]