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.001761/0.001761, 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.002133/0.002133, 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.479/1.479, allocations: 207.6 MB / 235.3 MB, free: 10.01 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.002039/0.002039, allocations: 55.92 kB / 347.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2881, allocations: 49.16 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003454/0.2916, allocations: 2.355 MB / 398.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.2932, allocations: 0.9836 MB / 399.7 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.2933, allocations: 7.5 kB / 399.7 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.2935, allocations: 43.66 kB / 399.7 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004444/0.294, allocations: 136.5 kB / 399.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.2943, allocations: 170.7 kB / 400 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004426/0.2947, allocations: 420.3 kB / 400.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.2949, allocations: 52.56 kB / 400.5 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.2951, allocations: 181.5 kB / 400.7 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003184/0.2954, allocations: 232.4 kB / 400.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.031e-05/0.2955, allocations: 32.72 kB / 400.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002308/0.2957, allocations: 129.6 kB / 401.1 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.2958, allocations: 102.2 kB / 401.2 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.296, allocations: 160.7 kB / 401.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005771/0.2966, allocations: 452.8 kB / 401.8 MB, free: 5.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2966, allocations: 1.688 kB / 401.8 MB, free: 5.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2966, allocations: 3.938 kB / 401.8 MB, free: 5.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.2966, allocations: 0 / 401.8 MB, free: 5.738 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.001075/0.2976, allocations: 0.567 MB / 402.3 MB, free: 5.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2977, allocations: 13.08 kB / 402.3 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.887e-05/0.2978, allocations: 71.7 kB / 402.4 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002857/0.298, allocations: 49.67 kB / 402.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003972/0.2984, allocations: 249.2 kB / 402.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.2986, allocations: 142.8 kB / 402.8 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.748e-05/0.2986, allocations: 26 kB / 402.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006739/0.2993, allocations: 378.1 kB / 403.2 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.2993, allocations: 1.672 kB / 403.2 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/0.2994, allocations: 14.53 kB / 403.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.2994, allocations: 7.125 kB / 403.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008087/0.3002, allocations: 419.4 kB / 403.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.3021, allocations: 1.177 MB / 404.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000614/0.3027, allocations: 334.2 kB / 405.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003384/0.3031, allocations: 173.4 kB / 405.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.3031, allocations: 4.469 kB / 405.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.3031, allocations: 37.53 kB / 405.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.342e-06/0.3031, allocations: 1.125 kB / 405.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004188/0.3073, allocations: 1.685 MB / 407.1 MB, free: 2.891 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.3073, allocations: 85.86 kB / 407.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/0.3076, allocations: 245.5 kB / 407.4 MB, free: 2.648 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.3076, allocations: 36.33 kB / 407.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.048e-05/0.3077, allocations: 141.2 kB / 407.6 MB, free: 2.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.513e-05/0.3078, allocations: 160 kB / 407.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.3079, allocations: 80.53 kB / 407.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.88e-05/0.308, allocations: 337 kB / 408.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003462/0.3083, allocations: 165.8 kB / 408.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/0.3087, allocations: 235.2 kB / 408.5 MB, free: 1.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006038/0.3093, allocations: 340 kB / 408.9 MB, free: 1.664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.3093, allocations: 3.938 kB / 408.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001013/0.3103, allocations: 0.5457 MB / 409.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3103, allocations: 6.625 kB / 409.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.3103, allocations: 1.672 kB / 409.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007261/0.3111, allocations: 256.9 kB / 409.7 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.3113, allocations: 47.03 kB / 409.7 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003851/0.3151, allocations: 2.792 MB / 412.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00028/0.3154, allocations: 24.02 kB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/0.3155, allocations: 20.14 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.0002538/0.3157, allocations: 155.3 kB / 412.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.713e-05/0.3158, allocations: 25.55 kB / 412.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.489e-05/0.3159, allocations: 50.95 kB / 412.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3159, allocations: 5.188 kB / 412.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3159, allocations: 0 / 412.8 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3159, allocations: 3.984 kB / 412.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.3178, allocations: 1.045 MB / 413.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3178, allocations: 0 / 413.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.318, allocations: 44.91 kB / 413.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006693/0.3187, allocations: 239 kB / 414.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.558e-05/0.3187, allocations: 19.11 kB / 414.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004052/0.3228, allocations: 2.728 MB / 416.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3228, allocations: 1.125 kB / 416.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001624/0.3244, allocations: 0.8255 MB / 417.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001594/0.3246, allocations: 61.62 kB / 417.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.744e-05/0.3246, allocations: 15.19 kB / 417.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.3249, allocations: 22.94 kB / 417.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.325, allocations: 63.25 kB / 417.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.3251, allocations: 17.45 kB / 417.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002372/0.3253, allocations: 178 kB / 418 MB, free: 11.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3253, allocations: 0 / 418 MB, free: 11.19 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006787/0.326, allocations: 142.4 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.00204/0.328, allocations: 1.41 MB / 419.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.3293, allocations: 0.5933 MB / 420.2 MB, free: 9.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3293, allocations: 0 / 420.2 MB, free: 9.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000745/0.3301, allocations: 419.3 kB / 420.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.3305, allocations: 32.12 kB / 420.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00543/0.3359, allocations: 3.433 MB / 424 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004789/0.3364, allocations: 0.784 MB / 424.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001967/0.3366, allocations: 58.95 kB / 424.9 MB, free: 5.977 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3367, allocations: 79.39 kB / 425 MB, free: 5.898 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3367, allocations: 3.938 kB / 425 MB, free: 5.895 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04483/0.3816, allocations: 10.37 MB / 435.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.39, allocations: 11.89 kB / 435.3 MB, free: 11.46 MB / 350.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.841656036907807]