Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.00167/0.00167, allocations: 128.4 kB / 17.8 MB, free: 5.262 MB / 14.72 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.002019/0.002019, allocations: 214.5 kB / 20.75 MB, free: 2.309 MB / 14.72 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 1.418/1.418, allocations: 230.4 MB / 254 MB, free: 15.05 MB / 206.1 MB " [Timeout remaining time 178] 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.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002166/0.002166, allocations: 59.89 kB / 373 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1079, allocations: 53.37 MB / 426.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004725/0.1126, allocations: 2.561 MB / 428.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002221/0.1149, allocations: 1.131 MB / 430 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/0.1151, allocations: 7.938 kB / 430 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.1154, allocations: 67.42 kB / 430.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000618/0.1161, allocations: 175.8 kB / 430.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005026/0.1166, allocations: 179.6 kB / 430.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006817/0.1172, allocations: 0.5102 MB / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2125/0.3298, allocations: 61.81 kB / 431 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005968/0.3304, allocations: 241.5 kB / 431.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003732/0.3307, allocations: 280.1 kB / 431.5 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.607e-05/0.3308, allocations: 46.03 kB / 431.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003355/0.3312, allocations: 138.7 kB / 431.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.3313, allocations: 117.2 kB / 431.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.3315, allocations: 200 kB / 432 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006192/0.3321, allocations: 0.5496 MB / 432.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3321, allocations: 0.6562 kB / 432.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3321, allocations: 1.281 kB / 432.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.3321, allocations: 0.9375 kB / 432.6 MB, free: 7.496 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001168/0.3333, allocations: 0.7141 MB / 433.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3333, allocations: 9.156 kB / 433.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.19e-05/0.3334, allocations: 71.88 kB / 433.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003836/0.3338, allocations: 66.92 kB / 433.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004628/0.3342, allocations: 314.5 kB / 433.7 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.3343, allocations: 92.75 kB / 433.8 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-05/0.3344, allocations: 37.8 kB / 433.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008036/0.3352, allocations: 424.7 kB / 434.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.3352, allocations: 1.812 kB / 434.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.987e-05/0.3353, allocations: 11.88 kB / 434.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.3353, allocations: 6.688 kB / 434.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.3365, allocations: 472.5 kB / 434.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.3388, allocations: 0.9892 MB / 435.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.3398, allocations: 369.7 kB / 436.1 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004889/0.3403, allocations: 209.4 kB / 436.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.363e-05/0.3404, allocations: 9.031 kB / 436.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.3404, allocations: 37.92 kB / 436.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.094e-06/0.3404, allocations: 0 / 436.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005499/0.3459, allocations: 2.143 MB / 438.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.346, allocations: 88.47 kB / 438.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003433/0.3463, allocations: 270.8 kB / 438.9 MB, free: 5.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.3463, allocations: 37.56 kB / 438.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.322e-05/0.3464, allocations: 142.2 kB / 439 MB, free: 4.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.3465, allocations: 196.2 kB / 439.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.3467, allocations: 95.77 kB / 439.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.586e-05/0.3468, allocations: 344.4 kB / 439.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/0.3472, allocations: 191.3 kB / 439.8 MB, free: 4.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004843/0.3477, allocations: 240.1 kB / 440.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000816/0.3485, allocations: 385.1 kB / 440.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3485, allocations: 2.406 kB / 440.5 MB, free: 4.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001384/0.3499, allocations: 0.602 MB / 441.1 MB, free: 3.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3499, allocations: 8.781 kB / 441.1 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3499, allocations: 1.125 kB / 441.1 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008485/0.3508, allocations: 302.7 kB / 441.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003269/0.3511, allocations: 73.11 kB / 441.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003899/0.355, allocations: 2.941 MB / 444.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.3554, allocations: 28.34 kB / 444.4 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.063e-05/0.3554, allocations: 20.81 kB / 444.4 MB, free: 1.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002016/0.3556, allocations: 163.5 kB / 444.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.337e-05/0.3557, allocations: 36.34 kB / 444.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.3558, allocations: 51.98 kB / 444.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.3558, allocations: 6.172 kB / 444.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3558, allocations: 0 / 444.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.3558, allocations: 3.844 kB / 444.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.3581, allocations: 1.283 MB / 446 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3581, allocations: 0 / 446 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.3584, allocations: 71.05 kB / 446 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007646/0.3592, allocations: 287.8 kB / 446.3 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-05/0.3592, allocations: 17.5 kB / 446.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003995/0.3632, allocations: 2.856 MB / 449.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3632, allocations: 2.719 kB / 449.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.3652, allocations: 0.9409 MB / 450.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002314/0.3654, allocations: 162.3 kB / 450.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/0.3655, allocations: 14.84 kB / 450.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.3658, allocations: 28.44 kB / 450.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.3661, allocations: 73.12 kB / 450.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.516e-05/0.3661, allocations: 19.16 kB / 450.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003328/0.3664, allocations: 204.3 kB / 450.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3664, allocations: 0 / 450.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007276/0.3672, allocations: 155 kB / 450.8 MB, free: 13.61 MB / 366.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: 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 (31): * Single equations (assignments): 30 * 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.004037/0.3712, allocations: 1.772 MB / 452.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001823/0.373, allocations: 0.6707 MB / 453.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.373, allocations: 1.406 kB / 453.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.3741, allocations: 458.1 kB / 453.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006575/0.3747, allocations: 50.34 kB / 453.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007593/0.3823, allocations: 3.804 MB / 457.5 MB, free: 9.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005679/0.3829, allocations: 0.796 MB / 458.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003101/0.3832, allocations: 78.03 kB / 458.4 MB, free: 8.977 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/0.3835, allocations: 118.1 kB / 458.5 MB, free: 8.898 MB / 366.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3835, allocations: 0 / 458.5 MB, free: 8.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04798/0.4314, allocations: 11.74 MB / 470.2 MB, free: 3.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.73, allocations: 6.922 kB / 470.2 MB, free: 3.449 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_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: 15.271765104029328]