Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001818/0.001818, allocations: 119.9 kB / 17.74 MB, free: 5.219 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.002139/0.002139, allocations: 185.3 kB / 20.68 MB, free: 2.293 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.387/1.387, allocations: 222.9 MB / 246.4 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 179] 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.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 47.92 kB / 357.5 MB, free: 8.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1031, allocations: 49.44 MB / 406.9 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00415/0.1073, allocations: 2.346 MB / 409.3 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.1093, allocations: 0.9208 MB / 410.2 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002275/0.1095, allocations: 4 kB / 410.2 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002492/0.1098, allocations: 43.58 kB / 410.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000613/0.1104, allocations: 143.2 kB / 410.4 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004171/0.1108, allocations: 167.7 kB / 410.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004773/0.1113, allocations: 414.8 kB / 410.9 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.1115, allocations: 68.7 kB / 411 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.1118, allocations: 183.4 kB / 411.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002999/0.1121, allocations: 211.3 kB / 411.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.51e-05/0.1121, allocations: 32 kB / 411.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002346/0.1124, allocations: 127.8 kB / 411.5 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.1125, allocations: 99.78 kB / 411.6 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.1127, allocations: 159.2 kB / 411.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005502/0.1133, allocations: 458.5 kB / 412.2 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1133, allocations: 0 / 412.2 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1133, allocations: 0 / 412.2 MB, free: 1.996 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1133, allocations: 0 / 412.2 MB, free: 1.996 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001181/0.1145, allocations: 0.6483 MB / 412.9 MB, free: 1.301 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.1145, allocations: 8.031 kB / 412.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.098e-05/0.1146, allocations: 62.73 kB / 413 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003035/0.1149, allocations: 48.72 kB / 413 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005261/0.1155, allocations: 312.3 kB / 413.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.1156, allocations: 84.52 kB / 413.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.695e-05/0.1157, allocations: 32.38 kB / 413.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000707/0.1164, allocations: 385.2 kB / 413.8 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.1164, allocations: 7.938 kB / 413.8 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.1165, allocations: 15.94 kB / 413.8 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1165, allocations: 4 kB / 413.8 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008715/0.1174, allocations: 421.9 kB / 414.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002083/0.1195, allocations: 1.226 MB / 415.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007086/0.1202, allocations: 358.5 kB / 415.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003823/0.1206, allocations: 184.8 kB / 416 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.445e-05/0.1206, allocations: 4 kB / 416 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.1207, allocations: 38.56 kB / 416 MB, free: 13.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.753e-06/0.1207, allocations: 4 kB / 416 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004894/0.1256, allocations: 1.919 MB / 418 MB, free: 11.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/0.1257, allocations: 88.86 kB / 418.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003246/0.126, allocations: 238.2 kB / 418.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.428e-05/0.1261, allocations: 37.7 kB / 418.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.1262, allocations: 140.8 kB / 418.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.1263, allocations: 158.7 kB / 418.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.1265, allocations: 78.12 kB / 418.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1266, allocations: 342.8 kB / 419 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003861/0.127, allocations: 168.8 kB / 419.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.1275, allocations: 237.8 kB / 419.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007375/0.1282, allocations: 339.2 kB / 419.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1282, allocations: 0 / 419.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001158/0.1294, allocations: 0.563 MB / 420.3 MB, free: 9.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.1294, allocations: 5.719 kB / 420.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.1295, allocations: 0 / 420.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007617/0.1302, allocations: 257.3 kB / 420.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/0.1305, allocations: 51.91 kB / 420.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004155/0.1346, allocations: 2.876 MB / 423.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.1349, allocations: 36.06 kB / 423.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.135, allocations: 16 kB / 423.6 MB, free: 6.121 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002051/0.1352, allocations: 165.4 kB / 423.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.163e-05/0.1352, allocations: 23.86 kB / 423.7 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.416e-05/0.1354, allocations: 42.98 kB / 423.8 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1354, allocations: 4 kB / 423.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.1354, allocations: 4 kB / 423.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1354, allocations: 0 / 423.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.1373, allocations: 1.098 MB / 424.9 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1373, allocations: 0 / 424.9 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.1376, allocations: 51.84 kB / 424.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000692/0.1383, allocations: 241.1 kB / 425.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.1383, allocations: 15.92 kB / 425.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003971/0.1423, allocations: 2.837 MB / 428 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1423, allocations: 0 / 428 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.1439, allocations: 0.8275 MB / 428.8 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.144, allocations: 140.9 kB / 429 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.876e-05/0.1441, allocations: 15.94 kB / 429 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.1444, allocations: 20.11 kB / 429 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.1445, allocations: 59.91 kB / 429.1 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.335e-05/0.1446, allocations: 15.98 kB / 429.1 MB, free: 340 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.1448, allocations: 180.3 kB / 429.3 MB, free: 160 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1448, allocations: 0 / 429.3 MB, free: 160 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006105/0.1454, allocations: 143.9 kB / 429.4 MB, free: 16 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.2064/0.3518, allocations: 1.418 MB / 430.8 MB, free: 21.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.3531, allocations: 0.63 MB / 431.5 MB, free: 21.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3531, allocations: 0.6562 kB / 431.5 MB, free: 21.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006389/0.3537, allocations: 433.9 kB / 431.9 MB, free: 21.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.3542, allocations: 36.62 kB / 431.9 MB, free: 21.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004461/0.3586, allocations: 3.455 MB / 435.4 MB, free: 20.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.3589, allocations: 0.7816 MB / 436.2 MB, free: 19.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001966/0.3591, allocations: 57.83 kB / 436.2 MB, free: 19.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.3593, allocations: 82.97 kB / 436.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3593, allocations: 1.312 kB / 436.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03946/0.3987, allocations: 9.876 MB / 446.2 MB, free: 17.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.41, allocations: 15.92 kB / 446.2 MB, free: 17.52 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gear.mode in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.918671307968907]