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.001024/0.001024, allocations: 94.81 kB / 16.65 MB, free: 6.27 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.00106/0.00106, allocations: 180.4 kB / 17.57 MB, free: 5.883 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.324/1.324, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002642/0.0002643, allocations: 8 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1068, allocations: 50.42 MB / 351.9 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002777/0.1096, allocations: 2.031 MB / 354 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.1108, allocations: 0.5688 MB / 354.5 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.1111, allocations: 8 kB / 354.6 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.1112, allocations: 23.78 kB / 354.6 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.1115, allocations: 59.53 kB / 354.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002467/0.1118, allocations: 43.89 kB / 354.7 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.1121, allocations: 250.9 kB / 354.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.1123, allocations: 68.78 kB / 355 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002429/0.1126, allocations: 91.53 kB / 355.1 MB, free: 452 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.1128, allocations: 91.56 kB / 355.2 MB, free: 360 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.973e-05/0.1128, allocations: 12 kB / 355.2 MB, free: 348 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.144e-05/0.1128, allocations: 8 kB / 355.2 MB, free: 340 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.405e-05/0.1129, allocations: 39.83 kB / 355.2 MB, free: 300 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.113, allocations: 129.1 kB / 355.4 MB, free: 164 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002647/0.1133, allocations: 227.3 kB / 355.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1133, allocations: 4 kB / 355.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1133, allocations: 7.938 kB / 355.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.789e-06/0.1133, allocations: 0 / 355.6 MB, free: 15.93 MB / 302.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.0007/0.1141, allocations: 483 kB / 356.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1141, allocations: 12.03 kB / 356.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.778e-05/0.1142, allocations: 50.73 kB / 356.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.721e-05/0.1142, allocations: 28.66 kB / 356.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.1145, allocations: 241.5 kB / 356.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.1145, allocations: 16.81 kB / 356.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.723e-05/0.1146, allocations: 20.38 kB / 356.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004027/0.115, allocations: 217.9 kB / 356.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.115, allocations: 3.906 kB / 356.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.1151, allocations: 12 kB / 356.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.1151, allocations: 4 kB / 356.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002695/0.1154, allocations: 133.7 kB / 356.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.1164, allocations: 0.7094 MB / 357.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002765/0.1167, allocations: 162.4 kB / 357.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.1168, allocations: 72.83 kB / 357.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.1169, allocations: 8 kB / 357.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.1169, allocations: 30.56 kB / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.332e-06/0.1169, allocations: 0 / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001585/0.1185, allocations: 0.8961 MB / 358.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.1185, allocations: 51.41 kB / 358.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.1187, allocations: 187.1 kB / 358.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.1187, allocations: 25.7 kB / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.699e-05/0.1188, allocations: 152.2 kB / 359.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.725e-05/0.1189, allocations: 86.73 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.206e-05/0.119, allocations: 29.7 kB / 359.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1191, allocations: 326.8 kB / 359.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.1192, allocations: 55.97 kB / 359.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.1194, allocations: 104.2 kB / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.1197, allocations: 164.2 kB / 359.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1197, allocations: 0 / 359.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004352/0.1201, allocations: 262 kB / 360.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1201, allocations: 8 kB / 360.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1201, allocations: 3.938 kB / 360.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001584/0.1203, allocations: 32.83 kB / 360.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002204/0.1205, allocations: 56.03 kB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/0.1217, allocations: 1.374 MB / 361.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.1218, allocations: 24.02 kB / 361.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.1219, allocations: 8 kB / 361.6 MB, free: 9.438 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.0001275/0.122, allocations: 133.8 kB / 361.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.146e-05/0.122, allocations: 19.81 kB / 361.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.425e-05/0.1221, allocations: 25.86 kB / 361.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1221, allocations: 0 / 361.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1221, allocations: 4 kB / 361.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1221, allocations: 7.938 kB / 361.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008962/0.123, allocations: 0.6481 MB / 362.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.123, allocations: 0 / 362.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002142/0.1233, allocations: 51.91 kB / 362.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.1234, allocations: 28.84 kB / 362.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.1234, allocations: 8 kB / 362.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.1245, allocations: 1.382 MB / 363.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.1245, allocations: 3.938 kB / 363.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005704/0.1251, allocations: 420.1 kB / 364.3 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.1251, allocations: 92.95 kB / 364.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/0.1251, allocations: 8 kB / 364.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.1253, allocations: 4 kB / 364.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.766e-05/0.1253, allocations: 27.91 kB / 364.4 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.1254, allocations: 4 kB / 364.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.469e-05/0.1255, allocations: 128.8 kB / 364.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1255, allocations: 0 / 364.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003229/0.1258, allocations: 60 kB / 364.6 MB, free: 6.145 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.0008894/0.1267, allocations: 0.9452 MB / 365.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005252/0.1272, allocations: 298.5 kB / 365.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.1272, allocations: 0 / 365.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002994/0.1275, allocations: 211.9 kB / 366 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.128, allocations: 43.88 kB / 366.1 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003242/0.1313, allocations: 2.72 MB / 368.8 MB, free: 1.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.1316, allocations: 0.7479 MB / 369.6 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.702e-05/0.1317, allocations: 17.95 kB / 369.6 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.1318, allocations: 71.41 kB / 369.6 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1318, allocations: 0 / 369.6 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1888/0.3206, allocations: 4.307 MB / 374 MB, free: 23.99 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.3209, allocations: 223.6 kB / 374.2 MB, free: 23.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/2.18, allocations: 0 / 374.2 MB, free: 23.74 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