Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 110.4 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009091/0.0009092, allocations: 46.08 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07991/0.08084, allocations: 49.44 MB / 350.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003143/0.08406, allocations: 2.334 MB / 352.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.08542, allocations: 0.9248 MB / 353.4 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.954e-05/0.08554, allocations: 4 kB / 353.4 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.08572, allocations: 47.52 kB / 353.5 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004335/0.08616, allocations: 143.1 kB / 353.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002762/0.08644, allocations: 169.3 kB / 353.8 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003393/0.08679, allocations: 414.8 kB / 354.2 MB, free: 316 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.087, allocations: 64.7 kB / 354.2 MB, free: 248 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.08717, allocations: 179.5 kB / 354.4 MB, free: 68 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.08742, allocations: 215.4 kB / 354.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.174e-05/0.08748, allocations: 32 kB / 354.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.08767, allocations: 123.7 kB / 354.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.08784, allocations: 99.72 kB / 354.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.08799, allocations: 163.2 kB / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004011/0.08839, allocations: 446.8 kB / 355.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.08841, allocations: 0 / 355.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.08841, allocations: 0 / 355.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.08842, allocations: 0 / 355.5 MB, free: 15.01 MB / 302.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.001076/0.0895, allocations: 0.6317 MB / 356.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.08954, allocations: 8.031 kB / 356.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.431e-05/0.08962, allocations: 58.73 kB / 356.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002699/0.0899, allocations: 56.53 kB / 356.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.09029, allocations: 304.1 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.09041, allocations: 88.52 kB / 356.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.09047, allocations: 24.38 kB / 356.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006562/0.09113, allocations: 381.2 kB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.09116, allocations: 7.844 kB / 357 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.0912, allocations: 12 kB / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.09121, allocations: 8 kB / 357 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008188/0.09203, allocations: 413.9 kB / 357.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.09385, allocations: 1.241 MB / 358.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006669/0.09452, allocations: 362.4 kB / 359 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003599/0.09489, allocations: 192.8 kB / 359.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/0.09493, allocations: 8.141 kB / 359.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.09496, allocations: 34.56 kB / 359.3 MB, free: 11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.473e-06/0.09497, allocations: 0 / 359.3 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004487/0.09946, allocations: 1.918 MB / 361.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.09951, allocations: 88.86 kB / 361.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.09977, allocations: 238.1 kB / 361.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.09982, allocations: 37.7 kB / 361.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.92e-05/0.0999, allocations: 136.6 kB / 361.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.1, allocations: 149.9 kB / 361.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.1002, allocations: 86.02 kB / 361.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.1003, allocations: 334.8 kB / 362.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003471/0.1006, allocations: 164.8 kB / 362.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/0.101, allocations: 229.9 kB / 362.6 MB, free: 7.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006354/0.1017, allocations: 351.1 kB / 363 MB, free: 7.105 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1017, allocations: 4 kB / 363 MB, free: 7.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001105/0.1028, allocations: 0.5551 MB / 363.5 MB, free: 6.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.1028, allocations: 8 kB / 363.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.1029, allocations: 0 / 363.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006992/0.1036, allocations: 256.8 kB / 363.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/0.1038, allocations: 55.95 kB / 363.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003631/0.1074, allocations: 2.878 MB / 366.7 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002541/0.1077, allocations: 32.06 kB / 366.7 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.1077, allocations: 16 kB / 366.7 MB, free: 3.16 MB / 302.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.0001491/0.1079, allocations: 157.7 kB / 366.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.498e-05/0.108, allocations: 27.7 kB / 366.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.096e-05/0.1081, allocations: 42.94 kB / 367 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.1081, allocations: 4 kB / 367 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.1081, allocations: 0 / 367 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1081, allocations: 7.984 kB / 367 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.1098, allocations: 1.097 MB / 368.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1098, allocations: 0 / 368.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.1101, allocations: 47.91 kB / 368.1 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005933/0.1107, allocations: 240.6 kB / 368.4 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/0.1107, allocations: 15.92 kB / 368.4 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1231/0.2338, allocations: 2.835 MB / 371.2 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2339, allocations: 0 / 371.2 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.2353, allocations: 0.8155 MB / 372 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.2354, allocations: 139 kB / 372.2 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.2355, allocations: 14.38 kB / 372.2 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.2357, allocations: 27.97 kB / 372.2 MB, free: 24.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.2359, allocations: 64.45 kB / 372.3 MB, free: 24.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.669e-05/0.2359, allocations: 11.77 kB / 372.3 MB, free: 24.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001779/0.2361, allocations: 182.5 kB / 372.5 MB, free: 24.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2361, allocations: 0 / 372.5 MB, free: 24.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005596/0.2367, allocations: 134.3 kB / 372.6 MB, free: 24.01 MB / 302.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.001702/0.2384, allocations: 1.428 MB / 374 MB, free: 23.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.2395, allocations: 0.6481 MB / 374.7 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2396, allocations: 0 / 374.7 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006316/0.2402, allocations: 438 kB / 375.1 MB, free: 22.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.2406, allocations: 34.83 kB / 375.1 MB, free: 22.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004213/0.2448, allocations: 3.434 MB / 378.6 MB, free: 20.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000179/0.245, allocations: 0.782 MB / 379.3 MB, free: 19.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001674/0.2452, allocations: 58.75 kB / 379.4 MB, free: 19.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.2453, allocations: 83.11 kB / 379.5 MB, free: 19.93 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2453, allocations: 0 / 379.5 MB, free: 19.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8372/1.083, allocations: 9.701 MB / 389.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/12.47, allocations: 12.53 kB / 389.2 MB, free: 16.84 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:Inertia1.J,Inertia1.a,Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.stateSelect,Inertia1.w,Inertia2.J,Inertia2.a,Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.stateSelect,Inertia2.w,der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(gear.phi_a),gear.a_a,gear.eta_mf1,gear.eta_mf2,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.startBackward,gear.startForward,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf2,gear.tau_bf_a,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.useHeatPort,gear.useSupport,gear.w_a,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time,torque1.flange.phi,torque1.flange.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.tau,torque2.useSupport