Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",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.001344/0.001344, allocations: 109.4 kB / 17.06 MB, free: 6.016 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.00154/0.00154, allocations: 192 kB / 18 MB, free: 5.105 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.341/1.341, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009047/0.0009048, allocations: 39.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.275, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003618/0.2786, allocations: 2.354 MB / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.2797, allocations: 0.5804 MB / 403.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.2799, allocations: 4 kB / 403.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.2801, allocations: 39.53 kB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001523/0.2802, allocations: 75.33 kB / 403.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002144/0.2804, allocations: 55.92 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002832/0.2807, allocations: 254.8 kB / 403.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.2809, allocations: 92.33 kB / 403.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.2811, allocations: 99.59 kB / 403.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.2813, allocations: 103.5 kB / 403.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.24e-05/0.2813, allocations: 20 kB / 403.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.343e-05/0.2813, allocations: 20 kB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.367e-05/0.2814, allocations: 43.83 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.2815, allocations: 123.3 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.2819, allocations: 248.8 kB / 404.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2819, allocations: 4 kB / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2819, allocations: 0 / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.2819, allocations: 0 / 404.3 MB, free: 4.723 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007242/0.2826, allocations: 0.5029 MB / 404.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.2827, allocations: 12.03 kB / 404.8 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.647e-05/0.2827, allocations: 54.72 kB / 404.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.73e-05/0.2828, allocations: 24.66 kB / 404.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.2831, allocations: 245.2 kB / 405.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.2831, allocations: 16.81 kB / 405.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.189e-05/0.2832, allocations: 28.36 kB / 405.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.2835, allocations: 206 kB / 405.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.2835, allocations: 3.984 kB / 405.4 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.2836, allocations: 8 kB / 405.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.2836, allocations: 4 kB / 405.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002526/0.2838, allocations: 133.6 kB / 405.5 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009638/0.2848, allocations: 0.6976 MB / 406.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.2851, allocations: 150.5 kB / 406.4 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.2852, allocations: 72.83 kB / 406.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.2852, allocations: 0 / 406.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.2853, allocations: 38.5 kB / 406.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 9.82e-07/0.2853, allocations: 0 / 406.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001496/0.2868, allocations: 0.8916 MB / 407.4 MB, free: 1.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.2868, allocations: 55.41 kB / 407.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.287, allocations: 171.2 kB / 407.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.287, allocations: 33.64 kB / 407.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.317e-05/0.2871, allocations: 140.3 kB / 407.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.813e-05/0.2872, allocations: 90.64 kB / 407.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.828e-05/0.2873, allocations: 49.7 kB / 407.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.2874, allocations: 334.8 kB / 408.2 MB, free: 484 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.2876, allocations: 51.97 kB / 408.3 MB, free: 432 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.2877, allocations: 108.1 kB / 408.4 MB, free: 308 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.288, allocations: 172.2 kB / 408.6 MB, free: 120 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.288, allocations: 0 / 408.6 MB, free: 120 kB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004331/0.2885, allocations: 246 kB / 408.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.2885, allocations: 6.656 kB / 408.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.2885, allocations: 12.11 kB / 408.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001628/0.2887, allocations: 32.83 kB / 408.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.2889, allocations: 55.91 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.2901, allocations: 1.484 MB / 410.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.2903, allocations: 8 kB / 410.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.2903, allocations: 8 kB / 410.4 MB, free: 14.11 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001296/0.2904, allocations: 133.8 kB / 410.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.16e-05/0.2905, allocations: 23.72 kB / 410.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.182e-05/0.2905, allocations: 29.86 kB / 410.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2905, allocations: 3.938 kB / 410.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.2905, allocations: 4 kB / 410.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.2906, allocations: 0 / 410.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008815/0.2914, allocations: 0.6463 MB / 411.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2915, allocations: 0 / 411.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.2917, allocations: 47.91 kB / 411.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001129/0.2918, allocations: 32.98 kB / 411.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.2918, allocations: 7.984 kB / 411.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.293, allocations: 1.481 MB / 412.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.293, allocations: 0 / 412.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005594/0.2936, allocations: 410 kB / 413.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.2937, allocations: 88.92 kB / 413.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.2937, allocations: 8 kB / 413.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.2938, allocations: 12.03 kB / 413.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.516e-05/0.2939, allocations: 23.92 kB / 413.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.2939, allocations: 7.938 kB / 413.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001069/0.294, allocations: 132.8 kB / 413.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.294, allocations: 0 / 413.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.2944, allocations: 56 kB / 413.5 MB, free: 10.71 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008752/0.2952, allocations: 0.9413 MB / 414.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005564/0.2958, allocations: 289.5 kB / 414.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2958, allocations: 0 / 414.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002972/0.2961, allocations: 218.5 kB / 415 MB, free: 9.219 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004258/0.2966, allocations: 51.83 kB / 415 MB, free: 9.168 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/0.2996, allocations: 2.533 MB / 417.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.3, allocations: 0.7519 MB / 418.3 MB, free: 5.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.773e-05/0.3001, allocations: 21.95 kB / 418.3 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.992e-05/0.3002, allocations: 67.41 kB / 418.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3002, allocations: 0 / 418.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02502/0.3252, allocations: 4.818 MB / 423.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.285/9.611, allocations: 6.469 kB / 423.2 MB, free: 0.9648 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,damper.phi_rel,damper.w_rel,inertia3.phi,inertia3.w Variables in the result:Jload,Jmotor,amplitude,damper.a_rel,damper.d,damper.flange_a.phi,damper.flange_a.tau,damper.flange_b.phi,damper.flange_b.tau,damper.lossPower,damper.phi_nominal,damper.phi_rel,damper.stateSelect,damper.tau,damper.useHeatPort,damper.w_rel,damping,der(damper.phi_rel),der(damper.w_rel),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),f,fixed.flange.phi,fixed.flange.tau,fixed.phi0,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.ratio,idealGear.useSupport,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,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,ratio,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport