Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001757/0.001757, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.002209/0.002209, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.353/1.353, allocations: 207.6 MB / 235.3 MB, free: 10.02 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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.00175/0.00175, allocations: 55.05 kB / 347.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2832, allocations: 49.17 MB / 396.3 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003239/0.2864, allocations: 2.354 MB / 398.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.2879, allocations: 0.987 MB / 399.7 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.2881, allocations: 4.094 kB / 399.7 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002144/0.2883, allocations: 43.25 kB / 399.7 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000541/0.2888, allocations: 137.7 kB / 399.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.2892, allocations: 169.5 kB / 400 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004917/0.2897, allocations: 424.5 kB / 400.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.2899, allocations: 49.12 kB / 400.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.2901, allocations: 185 kB / 400.7 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003476/0.2905, allocations: 228.1 kB / 400.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.345e-05/0.2905, allocations: 34.03 kB / 400.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002499/0.2908, allocations: 129.2 kB / 401.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.2909, allocations: 101.7 kB / 401.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.2911, allocations: 165.2 kB / 401.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000656/0.2917, allocations: 449.2 kB / 401.8 MB, free: 5.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2917, allocations: 0.9688 kB / 401.8 MB, free: 5.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2917, allocations: 4 kB / 401.8 MB, free: 5.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.2917, allocations: 0 / 401.8 MB, free: 5.742 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001207/0.2929, allocations: 0.5652 MB / 402.3 MB, free: 5.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.293, allocations: 17.8 kB / 402.3 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.562e-05/0.293, allocations: 63.84 kB / 402.4 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003034/0.2934, allocations: 53.2 kB / 402.5 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004972/0.2938, allocations: 246.3 kB / 402.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.294, allocations: 142.5 kB / 402.8 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.546e-05/0.294, allocations: 26.34 kB / 402.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006605/0.2947, allocations: 385.6 kB / 403.2 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.2947, allocations: 2.344 kB / 403.2 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.2947, allocations: 10.88 kB / 403.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.2948, allocations: 6.438 kB / 403.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008165/0.2956, allocations: 418.6 kB / 403.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.2976, allocations: 1.171 MB / 404.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006549/0.2983, allocations: 334.5 kB / 405.2 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.2986, allocations: 168 kB / 405.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.267e-05/0.2987, allocations: 9.734 kB / 405.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.2987, allocations: 37.56 kB / 405.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.184e-06/0.2987, allocations: 0 / 405.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004492/0.3032, allocations: 1.685 MB / 407.1 MB, free: 2.902 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.3032, allocations: 86.86 kB / 407.1 MB, free: 2.805 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000305/0.3035, allocations: 249.4 kB / 407.4 MB, free: 2.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.618e-05/0.3036, allocations: 36.27 kB / 407.4 MB, free: 2.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.581e-05/0.3036, allocations: 137.2 kB / 407.6 MB, free: 2.496 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.961e-05/0.3037, allocations: 156.1 kB / 407.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.3039, allocations: 79.92 kB / 407.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.906e-05/0.3039, allocations: 340 kB / 408.1 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000356/0.3043, allocations: 166.8 kB / 408.3 MB, free: 1.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003788/0.3047, allocations: 233.5 kB / 408.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006458/0.3053, allocations: 345 kB / 408.9 MB, free: 1.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3053, allocations: 1.219 kB / 408.9 MB, free: 1.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00107/0.3064, allocations: 0.5454 MB / 409.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.3064, allocations: 5.75 kB / 409.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3064, allocations: 1.281 kB / 409.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007596/0.3072, allocations: 257.5 kB / 409.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.3074, allocations: 50.56 kB / 409.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003709/0.3111, allocations: 2.792 MB / 412.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.3114, allocations: 27.41 kB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.229e-05/0.3115, allocations: 15.97 kB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002214/0.3117, allocations: 160 kB / 412.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.35e-05/0.3117, allocations: 24.39 kB / 412.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.414e-05/0.3118, allocations: 43.47 kB / 412.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.3119, allocations: 8.766 kB / 412.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.3119, allocations: 0 / 412.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.3119, allocations: 5.172 kB / 412.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.3137, allocations: 1.048 MB / 413.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3137, allocations: 0 / 413.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002224/0.314, allocations: 48.34 kB / 413.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006835/0.3147, allocations: 235.7 kB / 414.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.941e-05/0.3147, allocations: 19.33 kB / 414.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003951/0.3186, allocations: 2.729 MB / 416.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3186, allocations: 0 / 416.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.3202, allocations: 0.8187 MB / 417.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.3204, allocations: 66.61 kB / 417.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.515e-05/0.3204, allocations: 14.41 kB / 417.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.3207, allocations: 19.55 kB / 417.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.3208, allocations: 62.56 kB / 417.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.3209, allocations: 17.17 kB / 417.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002229/0.3211, allocations: 183.1 kB / 418 MB, free: 11.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3211, allocations: 0 / 418 MB, free: 11.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006628/0.3218, allocations: 140.6 kB / 418.2 MB, free: 11.17 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.002086/0.3238, allocations: 1.418 MB / 419.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.3252, allocations: 0.5948 MB / 420.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3252, allocations: 0 / 420.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007596/0.3259, allocations: 410.3 kB / 420.6 MB, free: 9.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004531/0.3264, allocations: 39.42 kB / 420.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0056/0.332, allocations: 3.432 MB / 424 MB, free: 6.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004547/0.3325, allocations: 0.7801 MB / 424.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002039/0.3327, allocations: 62.94 kB / 424.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.3328, allocations: 87.39 kB / 425 MB, free: 5.875 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3328, allocations: 0 / 425 MB, free: 5.875 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04528/0.3781, allocations: 10.36 MB / 435.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.36, allocations: 15.81 kB / 435.3 MB, free: 11.44 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gear.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.742070596999838]