Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008038/0.0008038, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007808/0.0007808, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8622/0.8622, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.116e-05/1.251e-05, allocations: 3.125 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002639/0.002651, allocations: 2.69 MB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.004327, allocations: 1.244 MB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.004491, allocations: 7.938 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002721/0.004763, allocations: 75.36 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004269/0.00519, allocations: 235.5 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000389/0.005579, allocations: 247.5 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.006098, allocations: 0.7326 MB / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.006266, allocations: 75.98 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005295/0.006796, allocations: 443.1 kB / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003051/0.007101, allocations: 327.2 kB / 330.6 MB, free: 9.836 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.306e-05/0.007164, allocations: 56 kB / 330.6 MB, free: 9.781 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001923/0.007356, allocations: 155.8 kB / 330.8 MB, free: 9.629 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.007495, allocations: 167.5 kB / 330.9 MB, free: 9.465 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.007637, allocations: 203.5 kB / 331.1 MB, free: 9.266 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006057/0.008242, allocations: 0.7752 MB / 331.9 MB, free: 8.488 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.008245, allocations: 4 kB / 331.9 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.008246, allocations: 0 / 331.9 MB, free: 8.484 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.008252, allocations: 0 / 331.9 MB, free: 8.484 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001095/0.009346, allocations: 0.7699 MB / 332.7 MB, free: 7.684 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.009382, allocations: 11.98 kB / 332.7 MB, free: 7.672 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.762e-05/0.009459, allocations: 90.59 kB / 332.8 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002418/0.009701, allocations: 76.61 kB / 332.8 MB, free: 7.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.01009, allocations: 308.4 kB / 333.2 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.0102, allocations: 160.3 kB / 333.3 MB, free: 6.988 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-05/0.01026, allocations: 40.33 kB / 333.3 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006707/0.01093, allocations: 0.5822 MB / 333.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.01095, allocations: 4.125 kB / 333.9 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.422e-05/0.01098, allocations: 19.94 kB / 334 MB, free: 6.324 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.01099, allocations: 12 kB / 334 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007814/0.01177, allocations: 0.5972 MB / 334.6 MB, free: 5.715 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.01332, allocations: 1.126 MB / 335.7 MB, free: 4.543 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007366/0.01406, allocations: 0.4935 MB / 336.2 MB, free: 4.035 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003565/0.01441, allocations: 274.2 kB / 336.4 MB, free: 3.766 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.884e-05/0.01445, allocations: 8.5 kB / 336.5 MB, free: 3.758 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.01447, allocations: 39.06 kB / 336.5 MB, free: 3.711 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 1.723e-06/0.01447, allocations: 4 kB / 336.5 MB, free: 3.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=70): time 0.004188/0.01866, allocations: 2.438 MB / 338.9 MB, free: 1.215 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.911e-05/0.01873, allocations: 89.7 kB / 339 MB, free: 1.109 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.01906, allocations: 356.5 kB / 339.4 MB, free: 0.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.78e-05/0.0191, allocations: 41.7 kB / 339.4 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.01921, allocations: 165.7 kB / 339.6 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.01935, allocations: 242 kB / 339.8 MB, free: 308 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.01953, allocations: 126.2 kB / 339.9 MB, free: 176 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.01966, allocations: 350.8 kB / 340.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.02005, allocations: 269.2 kB / 340.5 MB, free: 15.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004311/0.02048, allocations: 364.1 kB / 340.9 MB, free: 15.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.02117, allocations: 491.6 kB / 341.4 MB, free: 14.7 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.02118, allocations: 0 / 341.4 MB, free: 14.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001164/0.02234, allocations: 0.818 MB / 342.2 MB, free: 13.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.02237, allocations: 15.92 kB / 342.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.02238, allocations: 64 / 342.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007738/0.02316, allocations: 445 kB / 342.6 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.02337, allocations: 95.8 kB / 342.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009906/0.02436, allocations: 1.011 MB / 343.7 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.02461, allocations: 63.95 kB / 343.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.02466, allocations: 31.98 kB / 343.8 MB, free: 12.2 MB / 314.7 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002341/0.02489, allocations: 185.6 kB / 344 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.311e-05/0.02498, allocations: 43.72 kB / 344.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.02509, allocations: 63.86 kB / 344.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.02509, allocations: 8 kB / 344.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.0251, allocations: 0 / 344.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.02511, allocations: 3.984 kB / 344.1 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002205/0.02732, allocations: 1.563 MB / 345.7 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.02732, allocations: 0 / 345.7 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.02751, allocations: 75.88 kB / 345.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005539/0.02806, allocations: 420.5 kB / 346.2 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.96e-05/0.0281, allocations: 23.97 kB / 346.2 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008839/0.02899, allocations: 0.9712 MB / 347.2 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.02899, allocations: 0 / 347.2 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.03064, allocations: 1.208 MB / 348.4 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.03081, allocations: 123.5 kB / 348.5 MB, free: 7.398 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.125e-05/0.03087, allocations: 16 kB / 348.5 MB, free: 7.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.03108, allocations: 56 kB / 348.6 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.03122, allocations: 92.47 kB / 348.7 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.812e-05/0.03126, allocations: 27.97 kB / 348.7 MB, free: 7.211 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001949/0.03146, allocations: 263 kB / 349 MB, free: 6.953 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03146, allocations: 0 / 349 MB, free: 6.953 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003285/0.03179, allocations: 143.9 kB / 349.1 MB, free: 6.812 MB / 314.7 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002432/0.03422, allocations: 2.048 MB / 351.1 MB, free: 4.863 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009312/0.03515, allocations: 0.6351 MB / 351.8 MB, free: 4.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.03515, allocations: 3.938 kB / 351.8 MB, free: 4.227 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004619/0.03561, allocations: 348.6 kB / 352.1 MB, free: 3.883 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.03595, allocations: 65.56 kB / 352.2 MB, free: 3.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005154/0.0411, allocations: 4.835 MB / 357 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.04126, allocations: 225.9 kB / 357.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.04142, allocations: 79.36 kB / 357.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.0416, allocations: 148.4 kB / 357.5 MB, free: 14.42 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.0416, allocations: 0 / 357.5 MB, free: 14.42 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.06639, allocations: 13.87 MB / 371.3 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/7.877, allocations: 3.938 kB / 371.3 MB, free: 0.6016 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 9.580167757347226]