Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00177/0.00177, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002192/0.002192, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.469/1.469, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 51.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1038, allocations: 53.33 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004001/0.1078, allocations: 2.464 MB / 428.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001944/0.1098, allocations: 1.053 MB / 429.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.1099, allocations: 0 / 429.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.1103, allocations: 67.48 kB / 429.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004914/0.1108, allocations: 156 kB / 430 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.1112, allocations: 159.7 kB / 430.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005427/0.1117, allocations: 474.7 kB / 430.7 MB, free: 440 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.1119, allocations: 50.91 kB / 430.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002521/0.1121, allocations: 211.4 kB / 430.9 MB, free: 180 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1965/0.3086, allocations: 243.1 kB / 431.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002173/0.3089, allocations: 37.31 kB / 431.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003795/0.3092, allocations: 129.3 kB / 431.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.3094, allocations: 106.7 kB / 431.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.3096, allocations: 173.4 kB / 431.6 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000737/0.3103, allocations: 0.4926 MB / 432.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3103, allocations: 0 / 432.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3103, allocations: 0 / 432.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.3103, allocations: 1.312 kB / 432.1 MB, free: 7.793 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001368/0.3117, allocations: 0.6703 MB / 432.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.3118, allocations: 9.406 kB / 432.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.67e-05/0.3119, allocations: 66.44 kB / 432.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000372/0.3122, allocations: 56.94 kB / 432.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005535/0.3128, allocations: 305.5 kB / 433.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.3129, allocations: 89.45 kB / 433.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.104e-05/0.313, allocations: 26.25 kB / 433.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007518/0.3137, allocations: 385.5 kB / 433.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.3138, allocations: 2.094 kB / 433.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.055e-05/0.3138, allocations: 14.12 kB / 433.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.3138, allocations: 6.594 kB / 433.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009063/0.3147, allocations: 416.3 kB / 434.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.3168, allocations: 1.273 MB / 435.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007029/0.3175, allocations: 315.5 kB / 435.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003977/0.3179, allocations: 168.2 kB / 435.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.803e-05/0.318, allocations: 11.45 kB / 435.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.318, allocations: 37.33 kB / 435.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.104e-06/0.318, allocations: 1.125 kB / 435.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004952/0.3229, allocations: 1.896 MB / 437.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.323, allocations: 86.05 kB / 437.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.3233, allocations: 247.3 kB / 438.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.209e-05/0.3234, allocations: 37.5 kB / 438.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.162e-05/0.3234, allocations: 134 kB / 438.3 MB, free: 5.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.3236, allocations: 158.1 kB / 438.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.3237, allocations: 92.03 kB / 438.5 MB, free: 5.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.741e-05/0.3238, allocations: 336.9 kB / 438.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00038/0.3242, allocations: 164.1 kB / 439 MB, free: 4.695 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004174/0.3246, allocations: 227.9 kB / 439.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006895/0.3253, allocations: 337.1 kB / 439.6 MB, free: 4.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3253, allocations: 0 / 439.6 MB, free: 4.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001219/0.3265, allocations: 0.5433 MB / 440.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.3265, allocations: 5.562 kB / 440.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3265, allocations: 1.953 kB / 440.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008609/0.3274, allocations: 296 kB / 440.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002754/0.3277, allocations: 56 kB / 440.5 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003823/0.3315, allocations: 2.897 MB / 443.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003846/0.3319, allocations: 25.84 kB / 443.4 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-05/0.3319, allocations: 25.2 kB / 443.4 MB, free: 1.934 MB / 350.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.0002151/0.3321, allocations: 152.8 kB / 443.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.753e-05/0.3322, allocations: 34.64 kB / 443.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.3323, allocations: 49.69 kB / 443.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3323, allocations: 8.094 kB / 443.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3324, allocations: 0 / 443.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.3324, allocations: 3.594 kB / 443.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.3344, allocations: 1.097 MB / 444.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3344, allocations: 1.594 kB / 444.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.3346, allocations: 43.12 kB / 444.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007846/0.3354, allocations: 283.1 kB / 445.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.3355, allocations: 18.47 kB / 445.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003954/0.3394, allocations: 2.848 MB / 447.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3394, allocations: 0.6562 kB / 447.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/0.3412, allocations: 0.8006 MB / 448.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.3415, allocations: 145.4 kB / 448.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.488e-05/0.3415, allocations: 14.28 kB / 448.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002916/0.3418, allocations: 26.3 kB / 448.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.3421, allocations: 68.41 kB / 449 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.931e-05/0.3421, allocations: 18.61 kB / 449 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002614/0.3424, allocations: 183.2 kB / 449.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3424, allocations: 0 / 449.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007569/0.3431, allocations: 140.5 kB / 449.3 MB, free: 14.21 MB / 366.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.003581/0.3467, allocations: 1.645 MB / 451 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001614/0.3483, allocations: 0.5964 MB / 451.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3483, allocations: 0 / 451.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008415/0.3491, allocations: 410 kB / 452 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005567/0.3497, allocations: 50.77 kB / 452 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006209/0.3559, allocations: 3.414 MB / 455.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004994/0.3564, allocations: 0.7779 MB / 456.2 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003015/0.3567, allocations: 70.12 kB / 456.3 MB, free: 9.805 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.3569, allocations: 91.16 kB / 456.4 MB, free: 9.746 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3569, allocations: 4 kB / 456.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04553/0.4024, allocations: 10.62 MB / 467 MB, free: 5.379 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.58, allocations: 0 / 467 MB, free: 5.379 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.154873330000555]