Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009524/0.0009524, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009289/0.0009289, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.881/0.881, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.068e-05/1.25e-05, allocations: 6.281 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002551/0.002563, allocations: 2.343 MB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.003907, allocations: 1.014 MB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.00403, allocations: 7.938 kB / 327.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002338/0.004263, allocations: 51.58 kB / 327.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003302/0.004594, allocations: 160 kB / 328.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003006/0.004894, allocations: 163.5 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000334/0.005228, allocations: 490.4 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.005348, allocations: 44.89 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.005577, allocations: 279.5 kB / 329 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.005795, allocations: 215.5 kB / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.398e-05/0.005839, allocations: 39.98 kB / 329.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.005998, allocations: 123.8 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.069e-05/0.006089, allocations: 111.7 kB / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.303e-05/0.006182, allocations: 127.7 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000413/0.006595, allocations: 0.5298 MB / 330.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.006597, allocations: 0 / 330.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.006598, allocations: 0 / 330.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.006604, allocations: 0 / 330.2 MB, free: 10.24 MB / 298.7 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.0008061/0.00741, allocations: 0.5945 MB / 330.8 MB, free: 9.613 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.007444, allocations: 15.98 kB / 330.8 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.516e-05/0.007499, allocations: 62.72 kB / 330.8 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.00768, allocations: 52.73 kB / 330.9 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.00801, allocations: 247.2 kB / 331.1 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.927e-05/0.008109, allocations: 148 kB / 331.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.00815, allocations: 24.38 kB / 331.3 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004578/0.008608, allocations: 412.9 kB / 331.7 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.008623, allocations: 4.141 kB / 331.7 MB, free: 8.586 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.00865, allocations: 19.94 kB / 331.7 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.008657, allocations: 4 kB / 331.7 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005152/0.009172, allocations: 410.2 kB / 332.1 MB, free: 8.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.01046, allocations: 1.123 MB / 333.2 MB, free: 6.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004529/0.01091, allocations: 322.4 kB / 333.6 MB, free: 6.656 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.01113, allocations: 168.8 kB / 333.7 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.01116, allocations: 8.719 kB / 333.7 MB, free: 6.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.01118, allocations: 42.55 kB / 333.8 MB, free: 6.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.533e-06/0.01119, allocations: 0 / 333.8 MB, free: 6.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002649/0.01383, allocations: 1.66 MB / 335.4 MB, free: 4.711 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.01387, allocations: 84.86 kB / 335.5 MB, free: 4.609 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.01406, allocations: 262.4 kB / 335.8 MB, free: 4.344 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.01409, allocations: 33.7 kB / 335.8 MB, free: 4.305 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.184e-05/0.01415, allocations: 136.9 kB / 335.9 MB, free: 4.164 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.695e-05/0.01423, allocations: 158.8 kB / 336.1 MB, free: 4.008 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.929e-05/0.01432, allocations: 86.12 kB / 336.2 MB, free: 3.914 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.492e-05/0.0144, allocations: 338.8 kB / 336.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.01462, allocations: 164.9 kB / 336.7 MB, free: 3.414 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002532/0.01488, allocations: 256.2 kB / 336.9 MB, free: 3.141 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.01529, allocations: 336.2 kB / 337.3 MB, free: 2.797 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.01529, allocations: 4 kB / 337.3 MB, free: 2.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006883/0.01598, allocations: 0.545 MB / 337.8 MB, free: 2.242 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.01599, allocations: 4 kB / 337.8 MB, free: 2.238 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.016, allocations: 0 / 337.8 MB, free: 2.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004839/0.01648, allocations: 296.7 kB / 338.1 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.01663, allocations: 51.89 kB / 338.1 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.01919, allocations: 2.758 MB / 340.9 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/0.01932, allocations: 24.02 kB / 340.9 MB, free: 14.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.01936, allocations: 23.98 kB / 340.9 MB, free: 14.97 MB / 314.7 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.0001382/0.0195, allocations: 153.7 kB / 341.1 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.746e-05/0.01955, allocations: 27.81 kB / 341.1 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.651e-05/0.0196, allocations: 43 kB / 341.2 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.0196, allocations: 7.938 kB / 341.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.01961, allocations: 64 / 341.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.01961, allocations: 7.984 kB / 341.2 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.02081, allocations: 1.019 MB / 342.2 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.02082, allocations: 0 / 342.2 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.02094, allocations: 47.91 kB / 342.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004032/0.02134, allocations: 276.7 kB / 342.5 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.02137, allocations: 19.98 kB / 342.5 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/0.0237, allocations: 2.702 MB / 345.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.02371, allocations: 3.938 kB / 345.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009537/0.02466, allocations: 0.8004 MB / 346 MB, free: 9.676 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.587e-05/0.02476, allocations: 71.8 kB / 346.1 MB, free: 9.605 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/0.02479, allocations: 12 kB / 346.1 MB, free: 9.594 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.02491, allocations: 24.11 kB / 346.2 MB, free: 9.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.02504, allocations: 71.8 kB / 346.2 MB, free: 9.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.02506, allocations: 15.98 kB / 346.2 MB, free: 9.484 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000144/0.02521, allocations: 184.2 kB / 346.4 MB, free: 9.305 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02521, allocations: 0 / 346.4 MB, free: 9.305 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004269/0.02563, allocations: 135.9 kB / 346.5 MB, free: 9.172 MB / 314.7 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.001804/0.02744, allocations: 1.669 MB / 348.2 MB, free: 7.605 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008273/0.02826, allocations: 0.5981 MB / 348.8 MB, free: 6.996 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.02827, allocations: 0 / 348.8 MB, free: 6.996 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004307/0.0287, allocations: 417.8 kB / 349.2 MB, free: 6.574 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.02899, allocations: 44.78 kB / 349.3 MB, free: 6.531 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.03229, allocations: 3.363 MB / 352.6 MB, free: 3.047 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.03241, allocations: 171.8 kB / 352.8 MB, free: 2.863 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001401/0.03255, allocations: 66.92 kB / 352.9 MB, free: 2.797 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.03266, allocations: 92.44 kB / 353 MB, free: 2.707 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.03266, allocations: 4 kB / 353 MB, free: 2.703 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/0.05867, allocations: 10.62 MB / 363.6 MB, free: 8.141 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.842/7.9, allocations: 0 / 363.6 MB, free: 8.141 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 9.634593372233212]