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.001714/0.001721, allocations: 112.2 kB / 16.63 MB, free: 6.812 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.002274/0.002275, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.3/1.3, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 41.53 kB / 300.2 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09104/0.09219, allocations: 49.44 MB / 349.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003474/0.0957, allocations: 2.402 MB / 352.1 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009394/0.09666, allocations: 0.5688 MB / 352.6 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.09682, allocations: 4 kB / 352.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.09699, allocations: 27.78 kB / 352.7 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.09715, allocations: 63.47 kB / 352.7 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000197/0.09736, allocations: 43.95 kB / 352.8 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.09764, allocations: 262.8 kB / 353 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.09782, allocations: 88.28 kB / 353.1 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.09798, allocations: 95.59 kB / 353.2 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.09814, allocations: 107.5 kB / 353.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.259e-05/0.09818, allocations: 20 kB / 353.3 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.461e-05/0.09822, allocations: 20 kB / 353.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.134e-05/0.09826, allocations: 47.84 kB / 353.4 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.97e-05/0.09837, allocations: 111.4 kB / 353.5 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002279/0.0986, allocations: 243.3 kB / 353.8 MB, free: 332 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.09861, allocations: 4 kB / 353.8 MB, free: 328 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.051e-06/0.09862, allocations: 0 / 353.8 MB, free: 328 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.09864, allocations: 0 / 353.8 MB, free: 328 kB / 286.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.0006775/0.09932, allocations: 0.5106 MB / 354.3 MB, free: 15.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.09936, allocations: 8.031 kB / 354.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.519e-05/0.09942, allocations: 54.73 kB / 354.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.901e-05/0.09948, allocations: 24.66 kB / 354.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.09971, allocations: 240.6 kB / 354.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.09974, allocations: 12.81 kB / 354.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.963e-05/0.09978, allocations: 24.38 kB / 354.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003451/0.1001, allocations: 221.9 kB / 354.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.1002, allocations: 3.906 kB / 354.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.1002, allocations: 12 kB / 354.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1002, allocations: 7.984 kB / 354.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002402/0.1004, allocations: 121.7 kB / 355 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009412/0.1014, allocations: 0.7131 MB / 355.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.1017, allocations: 153.8 kB / 355.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.1018, allocations: 72.83 kB / 355.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.1018, allocations: 0 / 355.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.1018, allocations: 38.56 kB / 356 MB, free: 13.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.072e-06/0.1018, allocations: 0 / 356 MB, free: 13.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001457/0.1033, allocations: 0.886 MB / 356.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.931e-05/0.1033, allocations: 51.41 kB / 356.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.1035, allocations: 175.2 kB / 357.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.1035, allocations: 29.7 kB / 357.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.1036, allocations: 148.2 kB / 357.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.789e-05/0.1037, allocations: 94.67 kB / 357.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.616e-05/0.1038, allocations: 49.7 kB / 357.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1039, allocations: 330.8 kB / 357.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.104, allocations: 55.97 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.1041, allocations: 96.27 kB / 357.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002459/0.1044, allocations: 164.2 kB / 358 MB, free: 11.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1044, allocations: 4 kB / 358 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000411/0.1048, allocations: 257.9 kB / 358.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1048, allocations: 4 kB / 358.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.1048, allocations: 4 kB / 358.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001516/0.105, allocations: 44.75 kB / 358.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.1052, allocations: 43.98 kB / 358.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.1063, allocations: 1.481 MB / 359.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.1064, allocations: 16.08 kB / 359.9 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.1065, allocations: 8 kB / 359.9 MB, free: 9.711 MB / 302.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.0001068/0.1066, allocations: 137.8 kB / 360 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.1066, allocations: 15.81 kB / 360 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.403e-05/0.1067, allocations: 21.88 kB / 360 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.1067, allocations: 3.938 kB / 360 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1067, allocations: 4 kB / 360 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1067, allocations: 3.984 kB / 360.1 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008359/0.1075, allocations: 0.648 MB / 360.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1076, allocations: 0 / 360.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.1078, allocations: 48.03 kB / 360.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001104/0.1079, allocations: 32.98 kB / 360.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.1079, allocations: 4 kB / 360.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.109, allocations: 1.496 MB / 362.3 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.109, allocations: 0 / 362.3 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005386/0.1095, allocations: 406 kB / 362.7 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.99e-05/0.1096, allocations: 96.86 kB / 362.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.58e-05/0.1096, allocations: 8 kB / 362.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.1098, allocations: 8 kB / 362.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.955e-05/0.1098, allocations: 31.84 kB / 362.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.1098, allocations: 4 kB / 362.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.783e-05/0.1099, allocations: 124.8 kB / 362.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1099, allocations: 3.938 kB / 362.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.1103, allocations: 56 kB / 363 MB, free: 6.312 MB / 302.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.0007914/0.1111, allocations: 0.9376 MB / 363.9 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005319/0.1116, allocations: 290.7 kB / 364.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1116, allocations: 0 / 364.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002949/0.1119, allocations: 227.9 kB / 364.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004452/0.1124, allocations: 43.16 kB / 364.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.1153, allocations: 2.606 MB / 367.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.1156, allocations: 0.7443 MB / 367.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.577e-05/0.1157, allocations: 21.95 kB / 367.9 MB, free: 1.254 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.058e-05/0.1158, allocations: 67.41 kB / 367.9 MB, free: 1.188 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1158, allocations: 0 / 367.9 MB, free: 1.188 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1659/0.2817, allocations: 4.528 MB / 372.5 MB, free: 25.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/0.2819, allocations: 228 kB / 372.7 MB, free: 25.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.138, allocations: 0 / 372.7 MB, free: 25.23 MB / 302.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