Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001124/0.001124, allocations: 118.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.001316/0.001316, allocations: 198 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.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2813, allocations: 50.55 MB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003197/0.2845, allocations: 2.359 MB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.2855, allocations: 0.6505 MB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.2857, allocations: 7.938 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.2858, allocations: 39.64 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001262/0.286, allocations: 63.36 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.2862, allocations: 67.84 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002747/0.2865, allocations: 266.7 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.2867, allocations: 92.27 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.2869, allocations: 111.6 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.287, allocations: 103.5 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.2871, allocations: 16 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.937e-05/0.2871, allocations: 24 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.75e-05/0.2872, allocations: 43.83 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.2873, allocations: 123.4 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002705/0.2876, allocations: 252.8 kB / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2876, allocations: 0 / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2876, allocations: 0 / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2876, allocations: 0 / 412.9 MB, free: 13.3 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006569/0.2883, allocations: 0.5145 MB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.2883, allocations: 12.03 kB / 413.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.053e-05/0.2884, allocations: 50.73 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.2885, allocations: 40.64 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003392/0.2889, allocations: 248.6 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.2889, allocations: 12.81 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.299e-05/0.289, allocations: 20.38 kB / 413.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.2893, allocations: 214 kB / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.2893, allocations: 3.906 kB / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.2894, allocations: 12 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.2894, allocations: 8 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.2896, allocations: 129.6 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009512/0.2906, allocations: 0.6976 MB / 414.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.2909, allocations: 150.5 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.291, allocations: 72.81 kB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.291, allocations: 0 / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.2911, allocations: 38.56 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 9.92e-07/0.2911, allocations: 0 / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001529/0.2926, allocations: 0.8946 MB / 416 MB, free: 9.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.2926, allocations: 51.41 kB / 416.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.2928, allocations: 180.8 kB / 416.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.2928, allocations: 29.69 kB / 416.3 MB, free: 9.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.147e-05/0.2929, allocations: 148.3 kB / 416.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.32e-05/0.293, allocations: 90.73 kB / 416.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.539e-05/0.2931, allocations: 45.7 kB / 416.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2932, allocations: 330.8 kB / 416.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.2933, allocations: 59.97 kB / 417 MB, free: 8.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.2935, allocations: 100.2 kB / 417 MB, free: 8.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.2937, allocations: 172.2 kB / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2937, allocations: 0 / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000419/0.2942, allocations: 257.9 kB / 417.5 MB, free: 8.402 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.2942, allocations: 8 kB / 417.5 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2942, allocations: 0 / 417.5 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.2944, allocations: 32.83 kB / 417.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.2946, allocations: 55.86 kB / 417.6 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.2959, allocations: 1.477 MB / 419 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.2961, allocations: 11.98 kB / 419.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.2961, allocations: 12 kB / 419.1 MB, free: 6.66 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.0001313/0.2963, allocations: 133.8 kB / 419.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.226e-05/0.2963, allocations: 15.81 kB / 419.2 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.413e-05/0.2964, allocations: 29.86 kB / 419.2 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2964, allocations: 7.938 kB / 419.2 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2964, allocations: 0 / 419.2 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.2964, allocations: 0 / 419.2 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009131/0.2973, allocations: 0.6518 MB / 419.9 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2973, allocations: 0 / 419.9 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.2975, allocations: 43.97 kB / 419.9 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001307/0.2977, allocations: 40.91 kB / 420 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.2977, allocations: 7.984 kB / 420 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.2989, allocations: 1.477 MB / 421.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2989, allocations: 12.03 kB / 421.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005739/0.2995, allocations: 402 kB / 421.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.288e-05/0.2996, allocations: 88.92 kB / 422 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.2996, allocations: 8 kB / 422 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.2997, allocations: 8 kB / 422 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.2998, allocations: 19.95 kB / 422 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.2998, allocations: 12 kB / 422 MB, free: 3.449 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.836e-05/0.2999, allocations: 128.1 kB / 422.1 MB, free: 3.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2999, allocations: 0 / 422.1 MB, free: 3.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003423/0.3003, allocations: 56 kB / 422.2 MB, free: 3.27 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.0008392/0.3011, allocations: 0.9366 MB / 423.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005795/0.3017, allocations: 298.5 kB / 423.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3017, allocations: 0 / 423.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003152/0.3021, allocations: 222.1 kB / 423.6 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004434/0.3025, allocations: 48.55 kB / 423.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.3057, allocations: 2.538 MB / 426.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.3061, allocations: 0.7443 MB / 427 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.3062, allocations: 21.94 kB / 427 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.3063, allocations: 67.42 kB / 427 MB, free: 14.2 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3063, allocations: 0 / 427 MB, free: 14.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.3337, allocations: 4.849 MB / 431.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.61/9.944, allocations: 2.5 kB / 431.9 MB, free: 9.484 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,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