Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",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.001325/0.001325, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001313/0.001313, allocations: 190 kB / 17.54 MB, free: 6.066 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.31/1.31, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001049, allocations: 50.02 kB / 300.2 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.09203, allocations: 49.45 MB / 349.7 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004029/0.0961, allocations: 2.39 MB / 352.1 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.09725, allocations: 0.5726 MB / 352.6 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002195/0.09749, allocations: 11.94 kB / 352.7 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002026/0.09773, allocations: 23.78 kB / 352.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.098, allocations: 67.45 kB / 352.8 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.09827, allocations: 39.97 kB / 352.8 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.09866, allocations: 274.7 kB / 353.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/0.09891, allocations: 106.7 kB / 353.2 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/0.09916, allocations: 107.6 kB / 353.3 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000196/0.09936, allocations: 115.5 kB / 353.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.424e-05/0.09941, allocations: 20 kB / 353.4 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.247e-05/0.09947, allocations: 20 kB / 353.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.219e-05/0.09953, allocations: 51.77 kB / 353.5 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.09968, allocations: 119.4 kB / 353.6 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003051/0.09999, allocations: 259.3 kB / 353.8 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1, allocations: 0 / 353.8 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1, allocations: 4 kB / 353.8 MB, free: 492 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.1, allocations: 0 / 353.8 MB, free: 492 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008854/0.1009, allocations: 0.5224 MB / 354.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.101, allocations: 19.81 kB / 354.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.551e-05/0.1011, allocations: 62.67 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.8e-05/0.1011, allocations: 24.66 kB / 354.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003859/0.1015, allocations: 240.6 kB / 354.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.1016, allocations: 20.81 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.158e-05/0.1016, allocations: 28.28 kB / 354.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004492/0.1021, allocations: 191.4 kB / 354.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.1021, allocations: 4 kB / 354.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.1022, allocations: 4 kB / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.1022, allocations: 8 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002994/0.1025, allocations: 141.6 kB / 355.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.1035, allocations: 0.6308 MB / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003203/0.1039, allocations: 182.5 kB / 355.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.104, allocations: 100.8 kB / 356 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.1041, allocations: 4.031 kB / 356 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.1041, allocations: 38.56 kB / 356 MB, free: 14.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.804e-06/0.1041, allocations: 0 / 356 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001957/0.1061, allocations: 1.072 MB / 357.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.1061, allocations: 59.34 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1064, allocations: 184 kB / 357.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.1064, allocations: 33.7 kB / 357.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.719e-05/0.1065, allocations: 136.7 kB / 357.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.564e-05/0.1066, allocations: 114.3 kB / 357.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.453e-05/0.1066, allocations: 53.7 kB / 357.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.937e-05/0.1067, allocations: 334.8 kB / 358 MB, free: 12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.1069, allocations: 67.97 kB / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.107, allocations: 111.2 kB / 358.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/0.1073, allocations: 189.3 kB / 358.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1073, allocations: 0 / 358.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004715/0.1078, allocations: 298.2 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.1078, allocations: 4 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1079, allocations: 3.984 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001741/0.108, allocations: 48.78 kB / 358.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.1083, allocations: 51.97 kB / 358.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.1097, allocations: 1.744 MB / 360.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.1099, allocations: 12.09 kB / 360.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.1099, allocations: 11.94 kB / 360.5 MB, free: 9.312 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.11, allocations: 138.1 kB / 360.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.582e-05/0.1101, allocations: 19.75 kB / 360.7 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.598e-05/0.1101, allocations: 30.64 kB / 360.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.1101, allocations: 4 kB / 360.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1101, allocations: 0 / 360.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.1102, allocations: 4 kB / 360.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.1112, allocations: 0.7858 MB / 361.5 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1112, allocations: 7.938 kB / 361.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.1115, allocations: 55.95 kB / 361.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001154/0.1116, allocations: 36.78 kB / 361.6 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.1116, allocations: 8.188 kB / 361.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.1127, allocations: 1.492 MB / 363.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.1128, allocations: 0 / 363.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006478/0.1134, allocations: 494.4 kB / 363.6 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.924e-05/0.1135, allocations: 92.92 kB / 363.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.762e-05/0.1135, allocations: 4 kB / 363.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.1137, allocations: 8 kB / 363.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.683e-05/0.1137, allocations: 24.02 kB / 363.7 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.1137, allocations: 11.98 kB / 363.7 MB, free: 5.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.794e-05/0.1138, allocations: 131.2 kB / 363.9 MB, free: 5.711 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1139, allocations: 0 / 363.9 MB, free: 5.711 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000358/0.1142, allocations: 64 kB / 363.9 MB, free: 5.648 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.0009091/0.1151, allocations: 1.024 MB / 364.9 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006289/0.1158, allocations: 343.5 kB / 365.3 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1158, allocations: 0 / 365.3 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003296/0.1161, allocations: 247.6 kB / 365.5 MB, free: 3.984 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004781/0.1166, allocations: 54.73 kB / 365.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.1199, allocations: 2.846 MB / 368.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.1202, allocations: 0.7522 MB / 369.2 MB, free: 208 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.892e-05/0.1203, allocations: 22.28 kB / 369.2 MB, free: 184 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.1205, allocations: 79.41 kB / 369.3 MB, free: 104 kB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1205, allocations: 0 / 369.3 MB, free: 104 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1654/0.2859, allocations: 5.015 MB / 374.3 MB, free: 25.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/0.286, allocations: 219.5 kB / 374.5 MB, free: 25.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.139, allocations: 0 / 374.5 MB, free: 25.13 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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(der(idealGear.phi_a)),der(der(idealGear.phi_b)),der(idealGear.phi_a),der(idealGear.phi_b),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.support.phi,idealGear.support.tau,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.support.phi,torque.support.tau,torque.tau,torque.useSupport