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.001061/0.001061, allocations: 105.6 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.4 MB, free: 9.082 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 60.08 kB / 306.5 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09466/0.09618, allocations: 50.54 MB / 357.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003681/0.09989, allocations: 2.403 MB / 359.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.1011, allocations: 0.6543 MB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.1013, allocations: 4 kB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.1015, allocations: 27.78 kB / 360.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.1017, allocations: 63.47 kB / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.102, allocations: 51.95 kB / 360.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003006/0.1023, allocations: 262.7 kB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.1025, allocations: 88.28 kB / 360.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.1027, allocations: 103.6 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.1028, allocations: 99.5 kB / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.57e-05/0.1029, allocations: 20 kB / 360.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.072e-05/0.103, allocations: 35.94 kB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.492e-05/0.103, allocations: 43.84 kB / 360.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.1031, allocations: 119.4 kB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002702/0.1034, allocations: 251.4 kB / 361.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1034, allocations: 0 / 361.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1034, allocations: 0 / 361.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1034, allocations: 3.938 kB / 361.3 MB, free: 9.848 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.0006998/0.1041, allocations: 0.5069 MB / 361.8 MB, free: 9.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.1042, allocations: 15.97 kB / 361.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.189e-05/0.1043, allocations: 50.73 kB / 361.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.1044, allocations: 36.64 kB / 361.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.1047, allocations: 240.5 kB / 362.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.1047, allocations: 16.81 kB / 362.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.97e-05/0.1048, allocations: 24.38 kB / 362.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003491/0.1051, allocations: 210 kB / 362.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.1051, allocations: 12 kB / 362.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.1052, allocations: 4 kB / 362.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.1052, allocations: 7.984 kB / 362.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.1054, allocations: 129.6 kB / 362.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009415/0.1064, allocations: 0.7093 MB / 363.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000247/0.1066, allocations: 146.5 kB / 363.4 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.1068, allocations: 68.83 kB / 363.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.1068, allocations: 8 kB / 363.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.1068, allocations: 30.56 kB / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.1068, allocations: 0 / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001473/0.1083, allocations: 0.8881 MB / 364.4 MB, free: 6.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.1084, allocations: 55.41 kB / 364.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.1085, allocations: 176.2 kB / 364.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.1085, allocations: 33.7 kB / 364.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.525e-05/0.1086, allocations: 140.3 kB / 364.8 MB, free: 6.059 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.005e-05/0.1087, allocations: 90.66 kB / 364.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.579e-05/0.1088, allocations: 45.7 kB / 364.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.922e-05/0.1089, allocations: 334.8 kB / 365.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.109, allocations: 51.98 kB / 365.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.1091, allocations: 104.2 kB / 365.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.1094, allocations: 172.8 kB / 365.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1094, allocations: 0 / 365.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000407/0.1098, allocations: 250 kB / 365.8 MB, free: 4.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.1098, allocations: 8 kB / 365.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1099, allocations: 8.062 kB / 365.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000148/0.11, allocations: 32.83 kB / 365.8 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.1102, allocations: 51.91 kB / 365.9 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.1113, allocations: 1.481 MB / 367.4 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.1115, allocations: 8.031 kB / 367.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.1115, allocations: 8 kB / 367.4 MB, free: 3.234 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.00012/0.1116, allocations: 141.8 kB / 367.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.116e-05/0.1116, allocations: 23.7 kB / 367.6 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.359e-05/0.1117, allocations: 21.88 kB / 367.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.1117, allocations: 7.938 kB / 367.6 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1117, allocations: 0 / 367.6 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.1117, allocations: 3.984 kB / 367.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008266/0.1126, allocations: 0.652 MB / 368.2 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1126, allocations: 4 kB / 368.2 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.1128, allocations: 39.92 kB / 368.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001083/0.1129, allocations: 37.03 kB / 368.3 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.1129, allocations: 8 kB / 368.3 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009983/0.1139, allocations: 1.485 MB / 369.8 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.114, allocations: 0 / 369.8 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00051/0.1145, allocations: 409.1 kB / 370.2 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.114e-05/0.1145, allocations: 92.95 kB / 370.3 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.1146, allocations: 8 kB / 370.3 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.1147, allocations: 4 kB / 370.3 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.1148, allocations: 23.91 kB / 370.3 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.1148, allocations: 4 kB / 370.3 MB, free: 24 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.155/0.2698, allocations: 127.6 kB / 370.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.2698, allocations: 0 / 370.5 MB, free: 19.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005018/0.2703, allocations: 60.12 kB / 370.5 MB, free: 19.87 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.0008215/0.2712, allocations: 0.9411 MB / 371.5 MB, free: 19.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005596/0.2717, allocations: 299.7 kB / 371.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2718, allocations: 1.594 kB / 371.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002843/0.2721, allocations: 215.9 kB / 372 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004554/0.2725, allocations: 42.3 kB / 372 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.2753, allocations: 2.621 MB / 374.6 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.2755, allocations: 0.7467 MB / 375.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.063e-05/0.2756, allocations: 22.58 kB / 375.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.923e-05/0.2757, allocations: 68.36 kB / 375.5 MB, free: 16.67 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2757, allocations: 0 / 375.5 MB, free: 16.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01862/0.2943, allocations: 4.564 MB / 380 MB, free: 16.2 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/0.2945, allocations: 233.7 kB / 380.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.243/2.538, allocations: 0 / 380.3 MB, free: 15.94 MB / 302.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