Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.00188/0.00188, allocations: 114.5 kB / 17.78 MB, free: 5.289 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.002163/0.002163, allocations: 190.9 kB / 20.73 MB, free: 2.352 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.479/1.479, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.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.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 43.92 kB / 365.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09844/0.1, allocations: 52.14 MB / 417.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004231/0.1042, allocations: 2.751 MB / 420.5 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.1065, allocations: 1.084 MB / 421.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000212/0.1067, allocations: 7.938 kB / 421.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002746/0.107, allocations: 75.36 kB / 421.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000634/0.1076, allocations: 190.8 kB / 421.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.1081, allocations: 239.6 kB / 422.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007049/0.1088, allocations: 0.6507 MB / 422.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.109, allocations: 87.45 kB / 422.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004213/0.1094, allocations: 295.1 kB / 423.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004689/0.1099, allocations: 362.8 kB / 423.5 MB, free: 6.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.204e-05/0.11, allocations: 52 kB / 423.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002888/0.1103, allocations: 139.8 kB / 423.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001832/0.1105, allocations: 143.6 kB / 423.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.1107, allocations: 250.7 kB / 424.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008602/0.1116, allocations: 0.65 MB / 424.7 MB, free: 5.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1116, allocations: 0 / 424.7 MB, free: 5.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1116, allocations: 0 / 424.7 MB, free: 5.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.1116, allocations: 0 / 424.7 MB, free: 5.68 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001742/0.1133, allocations: 0.8026 MB / 425.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1134, allocations: 19.89 kB / 425.5 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001103/0.1135, allocations: 78.72 kB / 425.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003556/0.1139, allocations: 76.52 kB / 425.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006191/0.1145, allocations: 366.6 kB / 426 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.1146, allocations: 96.95 kB / 426.1 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.188e-05/0.1147, allocations: 36.38 kB / 426.2 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.1159, allocations: 0.5721 MB / 426.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.1159, allocations: 0 / 426.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.655e-05/0.1159, allocations: 16 kB / 426.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.116, allocations: 11.94 kB / 426.8 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.1174, allocations: 0.6363 MB / 427.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.1201, allocations: 1.287 MB / 428.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.1213, allocations: 0.5137 MB / 429.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006422/0.1219, allocations: 294.3 kB / 429.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.385e-05/0.122, allocations: 12.56 kB / 429.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.122, allocations: 43.12 kB / 429.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 1.974e-06/0.122, allocations: 0 / 429.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of matching and sorting (n=69): time 0.007574/0.1296, allocations: 2.861 MB / 432.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.663e-05/0.1297, allocations: 93.61 kB / 432.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004589/0.1301, allocations: 327 kB / 432.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.191e-05/0.1302, allocations: 41.7 kB / 432.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.1304, allocations: 165.8 kB / 433 MB, free: 13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002272/0.1306, allocations: 245.9 kB / 433.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.1308, allocations: 126.2 kB / 433.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.131, allocations: 346.8 kB / 433.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006521/0.1316, allocations: 293.2 kB / 434 MB, free: 11.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007072/0.1324, allocations: 350.5 kB / 434.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.1335, allocations: 0.5304 MB / 434.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1335, allocations: 0 / 434.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001935/0.1355, allocations: 0.8657 MB / 435.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.1355, allocations: 11.94 kB / 435.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1355, allocations: 0 / 435.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.1367, allocations: 478.4 kB / 436.2 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.1371, allocations: 79.88 kB / 436.3 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001505/0.1386, allocations: 1.072 MB / 437.4 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005468/0.1392, allocations: 63.98 kB / 437.4 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.233e-05/0.1393, allocations: 27.98 kB / 437.5 MB, free: 8.484 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002952/0.1396, allocations: 174.3 kB / 437.6 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.1397, allocations: 43.72 kB / 437.7 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.1399, allocations: 75.69 kB / 437.8 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.1399, allocations: 8 kB / 437.8 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.1399, allocations: 4 kB / 437.8 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1399, allocations: 3.984 kB / 437.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003576/0.1435, allocations: 1.741 MB / 439.5 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.1435, allocations: 0 / 439.5 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003882/0.1439, allocations: 71.89 kB / 439.6 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.145, allocations: 457 kB / 440 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.516e-05/0.145, allocations: 23.97 kB / 440.1 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001404/0.1464, allocations: 1.033 MB / 441.1 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1464, allocations: 0 / 441.1 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002767/0.1492, allocations: 1.291 MB / 442.4 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003103/0.1495, allocations: 176.8 kB / 442.5 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.1496, allocations: 24.12 kB / 442.6 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.1501, allocations: 55.92 kB / 442.6 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.1503, allocations: 84.42 kB / 442.7 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.013e-05/0.1504, allocations: 31.97 kB / 442.7 MB, free: 3.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003331/0.1507, allocations: 237.9 kB / 443 MB, free: 2.828 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1507, allocations: 0 / 443 MB, free: 2.828 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005718/0.1513, allocations: 159.9 kB / 443.1 MB, free: 2.672 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003386/0.1547, allocations: 1.87 MB / 445 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001951/0.1566, allocations: 0.6688 MB / 445.7 MB, free: 100 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.1566, allocations: 4.125 kB / 445.7 MB, free: 96 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1953/0.3519, allocations: 351.2 kB / 446 MB, free: 31.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006488/0.3526, allocations: 51.38 kB / 446.1 MB, free: 31.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00778/0.3604, allocations: 4.975 MB / 451 MB, free: 29.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.3606, allocations: 0.8206 MB / 451.9 MB, free: 29.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002395/0.3609, allocations: 62.72 kB / 451.9 MB, free: 29.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.3611, allocations: 132 kB / 452.1 MB, free: 29.14 MB / 366.1 MB Notification: Performance of SimCode: time 1.133e-06/0.3611, allocations: 0 / 452.1 MB, free: 29.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04259/0.4037, allocations: 13.88 MB / 465.9 MB, free: 25.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.15, allocations: 1.969 kB / 465.9 MB, free: 25.27 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable bearingFriction.mode in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.644851055927575]