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.001338/0.001338, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001416, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 59.91 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2516, allocations: 50.55 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00414/0.2558, allocations: 2.457 MB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.2578, allocations: 1.053 MB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.258, allocations: 8 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002878/0.2583, allocations: 59.5 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004227/0.2588, allocations: 146.3 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003776/0.2592, allocations: 167.7 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005191/0.2597, allocations: 474.6 kB / 413.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.2599, allocations: 72.69 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002389/0.2601, allocations: 199.5 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000338/0.2605, allocations: 243.2 kB / 413.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.975e-05/0.2605, allocations: 36 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002606/0.2608, allocations: 135.9 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.2609, allocations: 103.7 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001867/0.2611, allocations: 171.2 kB / 414.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006244/0.2618, allocations: 0.4934 MB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2618, allocations: 3.938 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2618, allocations: 0 / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2618, allocations: 4 kB / 414.6 MB, free: 11.7 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.001243/0.2631, allocations: 0.6738 MB / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.2631, allocations: 12.03 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.263e-05/0.2632, allocations: 62.73 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003048/0.2635, allocations: 52.72 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005305/0.2641, allocations: 301.5 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.2642, allocations: 96.44 kB / 415.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.767e-05/0.2643, allocations: 28.38 kB / 415.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007609/0.2651, allocations: 381.2 kB / 416.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.2651, allocations: 3.953 kB / 416.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.875e-05/0.2651, allocations: 15.98 kB / 416.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.2652, allocations: 8 kB / 416.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008742/0.266, allocations: 413.9 kB / 416.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.2682, allocations: 1.265 MB / 417.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007268/0.2689, allocations: 346 kB / 418.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003955/0.2694, allocations: 180.8 kB / 418.4 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.2694, allocations: 8 kB / 418.4 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.2695, allocations: 39.22 kB / 418.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.374e-06/0.2695, allocations: 0 / 418.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.005067/0.2745, allocations: 1.918 MB / 420.4 MB, free: 5.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.2746, allocations: 84.86 kB / 420.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.275, allocations: 242.4 kB / 420.7 MB, free: 5.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.719e-05/0.275, allocations: 41.7 kB / 420.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.2752, allocations: 140.8 kB / 420.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.2753, allocations: 154.7 kB / 421 MB, free: 4.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.2755, allocations: 86.06 kB / 421.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.2756, allocations: 338.8 kB / 421.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/0.276, allocations: 160.8 kB / 421.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004475/0.2765, allocations: 229.9 kB / 421.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007367/0.2772, allocations: 339.2 kB / 422.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2773, allocations: 4.031 kB / 422.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001212/0.2785, allocations: 0.5474 MB / 422.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.2785, allocations: 8 kB / 422.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2785, allocations: 0 / 422.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008343/0.2794, allocations: 304.7 kB / 423 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.2796, allocations: 55.89 kB / 423 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004137/0.2838, allocations: 2.897 MB / 425.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.2841, allocations: 27.97 kB / 426 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.611e-05/0.2841, allocations: 16 kB / 426 MB, free: 15.73 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.0002065/0.2843, allocations: 161.8 kB / 426.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.365e-05/0.2844, allocations: 31.75 kB / 426.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.567e-05/0.2845, allocations: 42.98 kB / 426.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.2846, allocations: 4 kB / 426.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.2846, allocations: 0 / 426.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2846, allocations: 4 kB / 426.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.2866, allocations: 1.113 MB / 427.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2866, allocations: 4 kB / 427.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002287/0.2868, allocations: 51.95 kB / 427.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000751/0.2876, allocations: 280.8 kB / 427.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.108e-05/0.2876, allocations: 19.92 kB / 427.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003923/0.2916, allocations: 2.843 MB / 430.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2916, allocations: 3.984 kB / 430.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.2932, allocations: 0.8161 MB / 431.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.2934, allocations: 144.9 kB / 431.5 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.139e-05/0.2935, allocations: 11.94 kB / 431.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.2937, allocations: 35.91 kB / 431.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.2939, allocations: 59.91 kB / 431.6 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/0.294, allocations: 15.98 kB / 431.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.2942, allocations: 188.9 kB / 431.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2942, allocations: 0 / 431.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005965/0.2948, allocations: 139.9 kB / 431.9 MB, free: 9.535 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.003254/0.2981, allocations: 1.649 MB / 433.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.2994, allocations: 0.6251 MB / 434.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2995, allocations: 0 / 434.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000786/0.3003, allocations: 437.3 kB / 434.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.3007, allocations: 39.75 kB / 434.7 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005508/0.3062, allocations: 3.428 MB / 438.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.3067, allocations: 0.7761 MB / 438.9 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002322/0.3069, allocations: 74.92 kB / 439 MB, free: 2.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.3071, allocations: 91.38 kB / 439 MB, free: 2.352 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3071, allocations: 0 / 439 MB, free: 2.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04092/0.348, allocations: 10.53 MB / 449.6 MB, free: 7.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.13, allocations: 16.75 kB / 449.6 MB, free: 7.965 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.1.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