Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001798/0.001798, allocations: 112.1 kB / 21.18 MB, free: 0.7148 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.002134/0.002134, allocations: 216.7 kB / 24.49 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 207.6 MB / 235.3 MB, free: 9.973 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 48.36 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2864, allocations: 49.17 MB / 396.3 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.0042/0.2906, allocations: 2.75 MB / 399.1 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.2928, allocations: 1.147 MB / 400.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002134/0.293, allocations: 7.812 kB / 400.2 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.2933, allocations: 70.97 kB / 400.3 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006286/0.2939, allocations: 207.1 kB / 400.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005276/0.2944, allocations: 250.3 kB / 400.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007088/0.2951, allocations: 0.6446 MB / 401.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.2953, allocations: 82.52 kB / 401.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000415/0.2957, allocations: 303.4 kB / 401.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005053/0.2963, allocations: 360 kB / 402.1 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.018e-05/0.2963, allocations: 52.28 kB / 402.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003018/0.2966, allocations: 141 kB / 402.3 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.2968, allocations: 148 kB / 402.5 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002191/0.297, allocations: 248.8 kB / 402.7 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008046/0.2978, allocations: 0.6474 MB / 403.4 MB, free: 4.871 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2979, allocations: 5.188 kB / 403.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2979, allocations: 0 / 403.4 MB, free: 4.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.2979, allocations: 0 / 403.4 MB, free: 4.867 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001573/0.2994, allocations: 0.7395 MB / 404.1 MB, free: 4.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.2995, allocations: 13.36 kB / 404.1 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.2996, allocations: 81.66 kB / 404.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003561/0.2999, allocations: 68.56 kB / 404.3 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006074/0.3005, allocations: 306.9 kB / 404.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.3007, allocations: 150.6 kB / 404.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.304e-05/0.3008, allocations: 43.36 kB / 404.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.3018, allocations: 0.5607 MB / 405.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.3018, allocations: 1.781 kB / 405.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.962e-05/0.3019, allocations: 15.03 kB / 405.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.3019, allocations: 9.438 kB / 405.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.3032, allocations: 0.6414 MB / 406 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002418/0.3056, allocations: 1.227 MB / 407.2 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.3067, allocations: 0.507 MB / 407.7 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005712/0.3073, allocations: 300.9 kB / 408 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.1e-05/0.3073, allocations: 11.92 kB / 408 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.3073, allocations: 41.81 kB / 408.1 MB, free: 2.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.334e-06/0.3073, allocations: 3.938 kB / 408.1 MB, free: 2.535 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006263/0.3136, allocations: 2.554 MB / 410.6 MB, free: 1.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.3136, allocations: 92.59 kB / 410.7 MB, free: 1.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004077/0.314, allocations: 329.8 kB / 411 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.709e-05/0.3141, allocations: 42.72 kB / 411.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.327e-05/0.3142, allocations: 170.9 kB / 411.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.3144, allocations: 237.1 kB / 411.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/0.3146, allocations: 125.4 kB / 411.6 MB, free: 432 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.33e-05/0.3146, allocations: 347.7 kB / 411.9 MB, free: 84 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006022/0.3152, allocations: 289 kB / 412.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006885/0.3159, allocations: 359.7 kB / 412.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/0.3171, allocations: 0.5235 MB / 413.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3171, allocations: 0 / 413.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001876/0.3189, allocations: 0.8639 MB / 413.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.319, allocations: 9.656 kB / 414 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.319, allocations: 1.281 kB / 414 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.3201, allocations: 473 kB / 414.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003863/0.3205, allocations: 84.66 kB / 414.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/0.3221, allocations: 1.079 MB / 415.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005301/0.3226, allocations: 57.2 kB / 415.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.204e-05/0.3227, allocations: 20.22 kB / 415.7 MB, free: 14.04 MB / 334.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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003451/0.323, allocations: 189.3 kB / 415.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.3231, allocations: 44.44 kB / 415.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001657/0.3233, allocations: 62.77 kB / 415.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.3233, allocations: 7 kB / 416 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.3233, allocations: 0 / 416 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3233, allocations: 5.578 kB / 416 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003531/0.3269, allocations: 1.711 MB / 417.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.3269, allocations: 6 kB / 417.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003919/0.3273, allocations: 76.42 kB / 417.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/0.3283, allocations: 443 kB / 418.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.04e-05/0.3284, allocations: 21.5 kB / 418.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001457/0.3298, allocations: 1.047 MB / 419.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3298, allocations: 5.375 kB / 419.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002684/0.3325, allocations: 1.302 MB / 420.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003548/0.3329, allocations: 107.6 kB / 420.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.333, allocations: 20 kB / 420.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000427/0.3334, allocations: 47.94 kB / 420.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.3336, allocations: 92.55 kB / 420.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.457e-05/0.3337, allocations: 23.97 kB / 420.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003501/0.334, allocations: 247.1 kB / 421.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.334, allocations: 0 / 421.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006/0.3346, allocations: 155.8 kB / 421.2 MB, free: 9.98 MB / 334.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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00319/0.3378, allocations: 1.869 MB / 423.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.3395, allocations: 0.6703 MB / 423.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.3395, allocations: 4 kB / 423.8 MB, free: 7.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008376/0.3403, allocations: 352.6 kB / 424.1 MB, free: 7.059 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/0.3409, allocations: 57.08 kB / 424.2 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008916/0.3498, allocations: 4.975 MB / 429.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.3504, allocations: 0.8174 MB / 430 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002609/0.3506, allocations: 63.34 kB / 430 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002436/0.3509, allocations: 131.4 kB / 430.2 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3509, allocations: 0 / 430.2 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05028/0.4012, allocations: 14.47 MB / 444.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.67, allocations: 8.047 kB / 444.6 MB, free: 2.34 MB / 350.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.219901160002337]