Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0008945/0.0008945, allocations: 76.36 kB / 20.67 MB, free: 3.898 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.0009963/0.0009963, allocations: 156.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.8745/0.8745, allocations: 177 MB / 204.1 MB, free: 5.762 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.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.477e-05/2.694e-05, allocations: 3.125 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003398/0.003425, allocations: 2.417 MB / 326.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.005208, allocations: 1.084 MB / 328 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.005342, allocations: 7.938 kB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.005634, allocations: 67.36 kB / 328.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004736/0.006108, allocations: 175.9 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.006481, allocations: 187.5 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005723/0.007053, allocations: 0.5295 MB / 329 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.007196, allocations: 64.84 kB / 329 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003611/0.007557, allocations: 319.3 kB / 329.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000224/0.007781, allocations: 235.5 kB / 329.6 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.807e-05/0.007829, allocations: 44 kB / 329.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002148/0.008044, allocations: 135.9 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.008145, allocations: 119.6 kB / 329.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.74e-05/0.008243, allocations: 143.7 kB / 330 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000491/0.008734, allocations: 0.5919 MB / 330.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.008736, allocations: 0 / 330.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.008738, allocations: 0 / 330.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.852e-06/0.008745, allocations: 0 / 330.6 MB, free: 9.805 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0009321/0.009677, allocations: 0.6414 MB / 331.2 MB, free: 9.133 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.009718, allocations: 11.98 kB / 331.2 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.031e-05/0.009778, allocations: 66.73 kB / 331.3 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002504/0.01003, allocations: 72.66 kB / 331.4 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003824/0.01041, allocations: 261.3 kB / 331.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.01052, allocations: 148 kB / 331.8 MB, free: 8.527 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.989e-05/0.01057, allocations: 36.33 kB / 331.8 MB, free: 8.492 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007802/0.01135, allocations: 443.1 kB / 332.2 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.01136, allocations: 192 / 332.2 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.01139, allocations: 19.94 kB / 332.3 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.0114, allocations: 8 kB / 332.3 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00059/0.01199, allocations: 466.2 kB / 332.7 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.01317, allocations: 0.8425 MB / 333.6 MB, free: 6.672 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005563/0.01372, allocations: 361.2 kB / 333.9 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002811/0.014, allocations: 214.4 kB / 334.1 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.01403, allocations: 12.44 kB / 334.1 MB, free: 6.086 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.01405, allocations: 39.06 kB / 334.2 MB, free: 6.039 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.954e-06/0.01405, allocations: 0 / 334.2 MB, free: 6.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.003036/0.01709, allocations: 1.929 MB / 336.1 MB, free: 4.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.01713, allocations: 85.59 kB / 336.2 MB, free: 3.957 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.01734, allocations: 273.8 kB / 336.5 MB, free: 3.676 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.01737, allocations: 37.7 kB / 336.5 MB, free: 3.633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.674e-05/0.01744, allocations: 141.2 kB / 336.6 MB, free: 3.488 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.665e-05/0.01753, allocations: 190.4 kB / 336.8 MB, free: 3.301 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.739e-05/0.01763, allocations: 94.17 kB / 336.9 MB, free: 3.203 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.692e-05/0.01772, allocations: 342.8 kB / 337.2 MB, free: 2.859 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.01801, allocations: 192.9 kB / 337.4 MB, free: 2.672 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.01831, allocations: 265.7 kB / 337.7 MB, free: 2.398 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004943/0.0188, allocations: 383.5 kB / 338.1 MB, free: 2.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.0188, allocations: 0 / 338.1 MB, free: 2.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007549/0.01956, allocations: 0.6004 MB / 338.7 MB, free: 1.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.01958, allocations: 11.94 kB / 338.7 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.01958, allocations: 3.984 kB / 338.7 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004979/0.02008, allocations: 294.5 kB / 339 MB, free: 1.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.02025, allocations: 67.88 kB / 339 MB, free: 1.035 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002716/0.02296, allocations: 2.797 MB / 341.8 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.02311, allocations: 32 kB / 341.9 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.262e-05/0.02314, allocations: 19.98 kB / 341.9 MB, free: 14.08 MB / 314.7 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.0001339/0.02328, allocations: 161.8 kB / 342 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.303e-05/0.02333, allocations: 35.75 kB / 342.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.92e-05/0.02338, allocations: 51.69 kB / 342.1 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.02338, allocations: 4 kB / 342.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.02338, allocations: 0 / 342.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.02339, allocations: 3.984 kB / 342.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.02475, allocations: 1.185 MB / 343.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.02475, allocations: 0 / 343.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.02492, allocations: 75.86 kB / 343.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003915/0.02531, allocations: 284.6 kB / 343.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.02534, allocations: 11.98 kB / 343.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002189/0.02753, allocations: 2.708 MB / 346.4 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.02753, allocations: 7.875 kB / 346.4 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.02888, allocations: 0.9334 MB / 347.3 MB, free: 8.422 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.02899, allocations: 83.75 kB / 347.4 MB, free: 8.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.02903, allocations: 12 kB / 347.4 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.02917, allocations: 27.97 kB / 347.5 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.02929, allocations: 76.3 kB / 347.5 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.02931, allocations: 19.98 kB / 347.6 MB, free: 8.207 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000145/0.02946, allocations: 205.3 kB / 347.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02946, allocations: 0 / 347.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004008/0.02986, allocations: 155.9 kB / 347.9 MB, free: 7.855 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: 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.001933/0.03179, allocations: 1.795 MB / 349.7 MB, free: 6.156 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008801/0.03267, allocations: 0.664 MB / 350.4 MB, free: 5.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.03267, allocations: 0 / 350.4 MB, free: 5.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004658/0.03314, allocations: 460.5 kB / 350.8 MB, free: 5.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.03344, allocations: 48.41 kB / 350.9 MB, free: 4.973 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/0.03747, allocations: 3.763 MB / 354.6 MB, free: 1.105 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/0.03762, allocations: 198.8 kB / 354.8 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001544/0.03777, allocations: 70.92 kB / 354.9 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.03791, allocations: 108.4 kB / 355 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of SimCode: time 8.62e-07/0.03791, allocations: 0 / 355 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.06938, allocations: 11.75 MB / 366.7 MB, free: 5.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.922/7.992, allocations: 2.922 kB / 366.7 MB, free: 5.02 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_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: 9.713088983669877]