Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.00124/0.00124, allocations: 115 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.001325/0.001325, allocations: 189.2 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.423/1.423, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 47.92 kB / 365.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09855, allocations: 52.15 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003889/0.1024, allocations: 2.44 MB / 420.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.1044, allocations: 0.9753 MB / 421.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.1046, allocations: 7.938 kB / 421.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.1048, allocations: 43.58 kB / 421.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000553/0.1054, allocations: 159.1 kB / 421.4 MB, free: 9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.1057, allocations: 183.6 kB / 421.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005255/0.1063, allocations: 470.5 kB / 422 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.1064, allocations: 65.64 kB / 422.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003054/0.1068, allocations: 207.4 kB / 422.3 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003427/0.1071, allocations: 263.1 kB / 422.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.353e-05/0.1072, allocations: 40 kB / 422.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.1074, allocations: 123.9 kB / 422.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.1075, allocations: 107.7 kB / 422.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.1077, allocations: 179.2 kB / 423 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006628/0.1084, allocations: 0.502 MB / 423.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1084, allocations: 0 / 423.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1084, allocations: 0 / 423.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.1084, allocations: 0 / 423.5 MB, free: 6.887 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001434/0.1098, allocations: 0.6841 MB / 424.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.1099, allocations: 12.03 kB / 424.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.481e-05/0.11, allocations: 66.72 kB / 424.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003188/0.1103, allocations: 56.69 kB / 424.3 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005419/0.1108, allocations: 319.6 kB / 424.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.111, allocations: 96.55 kB / 424.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.978e-05/0.1111, allocations: 32.38 kB / 424.8 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008521/0.1119, allocations: 412.9 kB / 425.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.1119, allocations: 7.938 kB / 425.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.401e-05/0.112, allocations: 19.98 kB / 425.2 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.112, allocations: 7.938 kB / 425.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.1131, allocations: 470.3 kB / 425.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.1149, allocations: 0.9738 MB / 426.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000889/0.1158, allocations: 372.5 kB / 427 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005187/0.1163, allocations: 214.1 kB / 427.2 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.794e-05/0.1164, allocations: 4.438 kB / 427.2 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.1164, allocations: 43.12 kB / 427.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.024e-06/0.1164, allocations: 0 / 427.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005754/0.1222, allocations: 2.16 MB / 429.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.1222, allocations: 85.67 kB / 429.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.1226, allocations: 267.1 kB / 429.8 MB, free: 312 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-05/0.1227, allocations: 33.7 kB / 429.8 MB, free: 272 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.871e-05/0.1227, allocations: 129.3 kB / 429.9 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.1229, allocations: 202.3 kB / 430.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.1231, allocations: 86.25 kB / 430.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1233, allocations: 346.8 kB / 430.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000478/0.1238, allocations: 197 kB / 430.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005362/0.1243, allocations: 244.6 kB / 431 MB, free: 15.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008999/0.1252, allocations: 400.3 kB / 431.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1252, allocations: 0 / 431.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001358/0.1266, allocations: 0.5979 MB / 432 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.1266, allocations: 11.94 kB / 432 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.629e-06/0.1266, allocations: 3.984 kB / 432 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008069/0.1274, allocations: 266.5 kB / 432.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.1277, allocations: 63.89 kB / 432.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004386/0.1321, allocations: 2.925 MB / 435.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004097/0.1325, allocations: 32 kB / 435.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-05/0.1326, allocations: 23.92 kB / 435.3 MB, free: 10.59 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002312/0.1328, allocations: 162.4 kB / 435.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.632e-05/0.1329, allocations: 31.81 kB / 435.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.133, allocations: 55.28 kB / 435.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.133, allocations: 4 kB / 435.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.133, allocations: 0 / 435.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.133, allocations: 3.984 kB / 435.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002338/0.1354, allocations: 1.262 MB / 436.8 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1354, allocations: 0 / 436.8 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/0.1357, allocations: 63.89 kB / 436.8 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007083/0.1364, allocations: 244.6 kB / 437.1 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.664e-05/0.1365, allocations: 19.98 kB / 437.1 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004085/0.1405, allocations: 2.838 MB / 439.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1405, allocations: 0 / 439.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/0.1425, allocations: 0.9547 MB / 440.9 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002302/0.1427, allocations: 152.9 kB / 441 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.311e-05/0.1428, allocations: 15.94 kB / 441.1 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.1431, allocations: 27.97 kB / 441.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002123/0.1433, allocations: 68.33 kB / 441.2 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/0.1434, allocations: 12 kB / 441.2 MB, free: 4.449 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002678/0.1436, allocations: 196.6 kB / 441.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1436, allocations: 0 / 441.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007236/0.1444, allocations: 164 kB / 441.5 MB, free: 4.098 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: 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 (31): * Single equations (assignments): 30 * 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.002857/0.1472, allocations: 1.549 MB / 443.1 MB, free: 2.504 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.1489, allocations: 0.676 MB / 443.7 MB, free: 1.816 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1489, allocations: 0 / 443.7 MB, free: 1.816 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009212/0.1498, allocations: 463.6 kB / 444.2 MB, free: 1.348 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.1503, allocations: 36.42 kB / 444.2 MB, free: 1.312 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1909/0.3413, allocations: 3.815 MB / 448 MB, free: 29.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.3415, allocations: 0.7997 MB / 448.8 MB, free: 28.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002212/0.3417, allocations: 58.77 kB / 448.9 MB, free: 28.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.3419, allocations: 104.1 kB / 449 MB, free: 28.5 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3419, allocations: 0 / 449 MB, free: 28.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04312/0.385, allocations: 11.03 MB / 460 MB, free: 26.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.72, allocations: 6.312 kB / 460 MB, free: 26.66 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_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_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 15.216111214831471]