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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001443/0.001443, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001727, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2522, allocations: 50.54 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003907/0.2562, allocations: 2.457 MB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.2581, allocations: 1.057 MB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002102/0.2583, allocations: 4 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00031/0.2586, allocations: 59.5 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005116/0.2592, allocations: 146.2 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004576/0.2596, allocations: 167.7 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005754/0.2602, allocations: 474.7 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/0.2604, allocations: 68.7 kB / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.2607, allocations: 203.5 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003606/0.2611, allocations: 243.2 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.019e-05/0.2612, allocations: 40 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002769/0.2615, allocations: 123.9 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.2617, allocations: 115.7 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002095/0.2619, allocations: 175.2 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006373/0.2625, allocations: 496.3 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2625, allocations: 4 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2626, allocations: 0 / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.2626, allocations: 0 / 414.5 MB, free: 11.73 MB / 334.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.00137/0.2639, allocations: 0.6627 MB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.264, allocations: 8.031 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.402e-05/0.2641, allocations: 70.72 kB / 415.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003298/0.2644, allocations: 44.55 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005319/0.265, allocations: 309.3 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.2651, allocations: 88.52 kB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/0.2652, allocations: 24.38 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007363/0.2659, allocations: 389.2 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.266, allocations: 11.91 kB / 416.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.803e-05/0.266, allocations: 8 kB / 416.1 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.266, allocations: 8 kB / 416.1 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000839/0.2669, allocations: 417.9 kB / 416.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.269, allocations: 1.257 MB / 417.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006921/0.2697, allocations: 353.8 kB / 418.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003801/0.2701, allocations: 184.7 kB / 418.3 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.946e-05/0.2702, allocations: 12.14 kB / 418.3 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.2702, allocations: 39.22 kB / 418.4 MB, free: 7.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.454e-06/0.2702, allocations: 0 / 418.4 MB, free: 7.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004963/0.2752, allocations: 1.905 MB / 420.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.656e-05/0.2753, allocations: 88.86 kB / 420.4 MB, free: 5.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003539/0.2757, allocations: 239 kB / 420.6 MB, free: 5.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.2757, allocations: 37.7 kB / 420.6 MB, free: 5.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.058e-05/0.2758, allocations: 136.6 kB / 420.8 MB, free: 5.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.276, allocations: 157.8 kB / 420.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.2761, allocations: 86.11 kB / 421 MB, free: 4.867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.2762, allocations: 330.8 kB / 421.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003774/0.2766, allocations: 168.8 kB / 421.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/0.277, allocations: 225.9 kB / 421.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006861/0.2777, allocations: 335.2 kB / 422 MB, free: 3.793 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.2778, allocations: 3.984 kB / 422 MB, free: 3.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001198/0.279, allocations: 0.5512 MB / 422.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.279, allocations: 4.125 kB / 422.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.279, allocations: 4 kB / 422.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008462/0.2799, allocations: 300.5 kB / 422.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.2802, allocations: 59.89 kB / 422.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004094/0.2843, allocations: 2.892 MB / 425.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003162/0.2846, allocations: 24.02 kB / 425.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-05/0.2847, allocations: 19.98 kB / 425.9 MB, free: 15.79 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.0002182/0.2849, allocations: 161.7 kB / 426 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.285, allocations: 31.61 kB / 426.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.876e-05/0.2851, allocations: 43 kB / 426.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2851, allocations: 4 kB / 426.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.2851, allocations: 3.938 kB / 426.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.2852, allocations: 3.984 kB / 426.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/0.2872, allocations: 1.113 MB / 427.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.2872, allocations: 3.984 kB / 427.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.2874, allocations: 43.95 kB / 427.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007597/0.2882, allocations: 284.8 kB / 427.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.359e-05/0.2883, allocations: 19.92 kB / 427.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003927/0.2922, allocations: 2.835 MB / 430.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2923, allocations: 4.062 kB / 430.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.2939, allocations: 0.8082 MB / 431.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.2941, allocations: 148.7 kB / 431.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.471e-05/0.2942, allocations: 15.94 kB / 431.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002873/0.2945, allocations: 23.97 kB / 431.4 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.2947, allocations: 71.94 kB / 431.5 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.2947, allocations: 19.92 kB / 431.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002329/0.295, allocations: 184.2 kB / 431.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.295, allocations: 0 / 431.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006886/0.2957, allocations: 140 kB / 431.8 MB, free: 9.598 MB / 350.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.002816/0.2985, allocations: 1.646 MB / 433.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.3, allocations: 0.6134 MB / 434.1 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.3001, allocations: 256 / 434.1 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008493/0.3009, allocations: 441 kB / 434.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005159/0.3015, allocations: 51 kB / 434.6 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005997/0.3075, allocations: 3.406 MB / 438 MB, free: 3.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.3079, allocations: 0.7839 MB / 438.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000272/0.3082, allocations: 78.84 kB / 438.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.3084, allocations: 91.39 kB / 438.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3084, allocations: 0 / 438.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0391/0.3475, allocations: 10.84 MB / 449.8 MB, free: 7.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.74, allocations: 10.16 kB / 449.8 MB, free: 7.738 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.smoothness,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