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.001106/0.001106, allocations: 112.6 kB / 17.06 MB, free: 6.09 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.001134/0.001134, allocations: 199 kB / 18 MB, free: 5.168 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.252/1.252, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001178, allocations: 43.94 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2523, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003839/0.2562, allocations: 2.342 MB / 402.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.2581, allocations: 0.9131 MB / 403.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003017/0.2584, allocations: 7.938 kB / 403.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002583/0.2588, allocations: 47.58 kB / 403.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005868/0.2594, allocations: 135.1 kB / 403.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004481/0.2598, allocations: 167.7 kB / 403.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005115/0.2603, allocations: 418.8 kB / 404.2 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.2605, allocations: 68.67 kB / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.2608, allocations: 183.5 kB / 404.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000329/0.2611, allocations: 219.2 kB / 404.7 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.54e-05/0.2612, allocations: 32 kB / 404.7 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000234/0.2615, allocations: 127.9 kB / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.2616, allocations: 99.7 kB / 405 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.2618, allocations: 167.2 kB / 405.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005628/0.2624, allocations: 444.3 kB / 405.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2624, allocations: 0 / 405.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2624, allocations: 4 kB / 405.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.2624, allocations: 0 / 405.6 MB, free: 3.445 MB / 318.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.001283/0.2637, allocations: 0.6277 MB / 406.2 MB, free: 2.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2638, allocations: 16.03 kB / 406.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.921e-05/0.2638, allocations: 70.66 kB / 406.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003161/0.2642, allocations: 48.55 kB / 406.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004609/0.2646, allocations: 308.2 kB / 406.6 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.2648, allocations: 80.53 kB / 406.7 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-05/0.2648, allocations: 36.36 kB / 406.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007393/0.2656, allocations: 377.2 kB / 407.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.2656, allocations: 4 kB / 407.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.908e-05/0.2657, allocations: 11.98 kB / 407.1 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.2657, allocations: 8 kB / 407.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008166/0.2665, allocations: 417.9 kB / 407.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.2686, allocations: 1.237 MB / 408.8 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007094/0.2694, allocations: 360 kB / 409.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003778/0.2697, allocations: 188.8 kB / 409.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.77e-05/0.2698, allocations: 12.14 kB / 409.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.2698, allocations: 34.56 kB / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.334e-06/0.2698, allocations: 0 / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004908/0.2748, allocations: 1.914 MB / 411.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.637e-05/0.2749, allocations: 84.86 kB / 411.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/0.2752, allocations: 246.2 kB / 411.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.2753, allocations: 37.7 kB / 411.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.2754, allocations: 132.7 kB / 411.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.2755, allocations: 157.8 kB / 411.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.2757, allocations: 82.11 kB / 412 MB, free: 12.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.2758, allocations: 330.8 kB / 412.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003775/0.2762, allocations: 168.8 kB / 412.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.2766, allocations: 229.9 kB / 412.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006725/0.2773, allocations: 347.2 kB / 413 MB, free: 11.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2773, allocations: 0 / 413 MB, free: 11.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001131/0.2785, allocations: 0.5551 MB / 413.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.2785, allocations: 8 kB / 413.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2785, allocations: 0 / 413.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007453/0.2793, allocations: 256.8 kB / 413.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/0.2795, allocations: 47.91 kB / 413.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003995/0.2836, allocations: 2.886 MB / 416.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002987/0.2839, allocations: 23.92 kB / 416.8 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.357e-05/0.2839, allocations: 19.98 kB / 416.8 MB, free: 7.594 MB / 334.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.0002073/0.2842, allocations: 161.8 kB / 417 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.947e-05/0.2842, allocations: 27.62 kB / 417 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.543e-05/0.2843, allocations: 42.98 kB / 417.1 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.2844, allocations: 4 kB / 417.1 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.2844, allocations: 4 kB / 417.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.2844, allocations: 3.984 kB / 417.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00188/0.2863, allocations: 1.082 MB / 418.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.2863, allocations: 4 kB / 418.2 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.2865, allocations: 51.89 kB / 418.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006745/0.2872, allocations: 233.1 kB / 418.4 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.904e-05/0.2873, allocations: 15.94 kB / 418.4 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003975/0.2913, allocations: 2.849 MB / 421.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2913, allocations: 0 / 421.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.2929, allocations: 0.8237 MB / 422.1 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002134/0.2932, allocations: 132.8 kB / 422.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.011e-05/0.2932, allocations: 15.94 kB / 422.3 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002834/0.2935, allocations: 27.97 kB / 422.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.2937, allocations: 59.84 kB / 422.3 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.2937, allocations: 15.98 kB / 422.4 MB, free: 1.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002194/0.294, allocations: 183.1 kB / 422.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.294, allocations: 0 / 422.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006477/0.2946, allocations: 136 kB / 422.7 MB, free: 1.5 MB / 334.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.002054/0.2967, allocations: 1.429 MB / 424.1 MB, free: 40 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.2982, allocations: 0.6253 MB / 424.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2982, allocations: 0 / 424.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007637/0.299, allocations: 429.3 kB / 425.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.2994, allocations: 38.34 kB / 425.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005433/0.3049, allocations: 3.445 MB / 428.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004489/0.3054, allocations: 0.7761 MB / 429.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.3056, allocations: 58.95 kB / 429.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.3057, allocations: 83.39 kB / 429.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3057, allocations: 4 kB / 429.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03775/0.3435, allocations: 10.19 MB / 439.7 MB, free: 396 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.66, allocations: 0 / 439.7 MB, free: 396 kB / 350.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