Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 123.4 kB / 17.79 MB, free: 5.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 204.3 kB / 20.74 MB, free: 2.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.449/1.449, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1079, allocations: 53.32 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00446/0.1124, allocations: 2.876 MB / 429.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.1147, allocations: 1.271 MB / 430.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.1149, allocations: 7.938 kB / 430.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003212/0.1152, allocations: 87.28 kB / 430.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005931/0.1158, allocations: 231.5 kB / 430.8 MB, free: 308 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005569/0.1164, allocations: 251.5 kB / 431 MB, free: 56 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2068/0.3231, allocations: 0.706 MB / 431.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.3234, allocations: 85.94 kB / 431.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005415/0.3239, allocations: 331.9 kB / 432.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004175/0.3243, allocations: 388.7 kB / 432.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.829e-05/0.3244, allocations: 56.62 kB / 432.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002865/0.3247, allocations: 157.9 kB / 432.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.3249, allocations: 160.6 kB / 432.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002103/0.3251, allocations: 272.8 kB / 433.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007623/0.3259, allocations: 0.7167 MB / 433.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3259, allocations: 2.062 kB / 433.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3259, allocations: 0 / 433.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.3259, allocations: 0 / 433.9 MB, free: 7.43 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001712/0.3276, allocations: 0.855 MB / 434.7 MB, free: 6.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.3276, allocations: 10.41 kB / 434.7 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.3277, allocations: 80.98 kB / 434.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004396/0.3282, allocations: 74.44 kB / 434.9 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005928/0.3288, allocations: 372.2 kB / 435.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.3289, allocations: 103 kB / 435.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.426e-05/0.329, allocations: 45.11 kB / 435.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.3302, allocations: 0.5607 MB / 435.9 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.3302, allocations: 3.156 kB / 435.9 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.892e-05/0.3303, allocations: 22.25 kB / 436 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.3303, allocations: 10.33 kB / 436 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.3317, allocations: 0.6084 MB / 436.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002661/0.3344, allocations: 1.301 MB / 437.9 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.3356, allocations: 0.4908 MB / 438.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006105/0.3362, allocations: 273.4 kB / 438.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.449e-05/0.3362, allocations: 18.89 kB / 438.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.3363, allocations: 42.94 kB / 438.7 MB, free: 5.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.184e-06/0.3363, allocations: 2.812 kB / 438.7 MB, free: 5.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007155/0.3434, allocations: 2.736 MB / 441.4 MB, free: 4.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.3435, allocations: 87.3 kB / 441.5 MB, free: 4.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005071/0.344, allocations: 347.2 kB / 441.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.754e-05/0.344, allocations: 44.61 kB / 441.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3441, allocations: 169 kB / 442.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.3443, allocations: 242.8 kB / 442.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/0.3446, allocations: 128.5 kB / 442.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/0.3446, allocations: 352.7 kB / 442.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000619/0.3453, allocations: 266.5 kB / 443 MB, free: 3.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006575/0.3459, allocations: 327.6 kB / 443.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.347, allocations: 498 kB / 443.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.347, allocations: 1.094 kB / 443.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001863/0.3488, allocations: 0.8235 MB / 444.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3488, allocations: 6.156 kB / 444.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3488, allocations: 0 / 444.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.35, allocations: 446.8 kB / 445.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004229/0.3504, allocations: 89.55 kB / 445.2 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001216/0.3516, allocations: 1.019 MB / 446.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005966/0.3522, allocations: 64.73 kB / 446.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.265e-05/0.3523, allocations: 26.11 kB / 446.3 MB, free: 1.484 MB / 350.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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002986/0.3526, allocations: 184.3 kB / 446.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.3527, allocations: 45.19 kB / 446.5 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000165/0.3529, allocations: 64.14 kB / 446.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.3529, allocations: 8.141 kB / 446.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.3529, allocations: 0 / 446.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3529, allocations: 4.297 kB / 446.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003197/0.3561, allocations: 1.694 MB / 448.3 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.3561, allocations: 1.906 kB / 448.3 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.3565, allocations: 89.03 kB / 448.4 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009901/0.3575, allocations: 412.5 kB / 448.8 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.176e-05/0.3576, allocations: 24.53 kB / 448.8 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.3588, allocations: 0.981 MB / 449.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3588, allocations: 0 / 449.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002666/0.3615, allocations: 1.209 MB / 451 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003145/0.3618, allocations: 189.3 kB / 451.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.3619, allocations: 20.91 kB / 451.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004837/0.3624, allocations: 50.62 kB / 451.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/0.3626, allocations: 98 kB / 451.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.988e-05/0.3627, allocations: 24.61 kB / 451.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004031/0.3631, allocations: 260.6 kB / 451.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3631, allocations: 0 / 451.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006135/0.3637, allocations: 143.4 kB / 451.8 MB, free: 14.64 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004418/0.3681, allocations: 2.042 MB / 453.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001884/0.37, allocations: 0.6276 MB / 454.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.37, allocations: 5.031 kB / 454.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009488/0.371, allocations: 345.1 kB / 454.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006382/0.3716, allocations: 66.03 kB / 454.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009403/0.381, allocations: 4.857 MB / 459.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004814/0.3815, allocations: 0.8258 MB / 460.5 MB, free: 9.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003078/0.3818, allocations: 76.59 kB / 460.6 MB, free: 9.746 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002885/0.3821, allocations: 151.3 kB / 460.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3821, allocations: 0 / 460.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.045/0.4271, allocations: 14.51 MB / 475.3 MB, free: 14.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/12.93, allocations: 4.688 kB / 475.3 MB, free: 14.75 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.440139490005095]