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.001107/0.001107, allocations: 110.1 kB / 16.51 MB, free: 6.707 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.001111/0.001111, allocations: 191.9 kB / 17.43 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.253/1.253, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009711/0.0009711, allocations: 50.38 kB / 300.1 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08298/0.08396, allocations: 49.44 MB / 349.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003424/0.08742, allocations: 2.398 MB / 351.9 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008202/0.08826, allocations: 0.5727 MB / 352.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.08838, allocations: 8 kB / 352.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.08854, allocations: 19.78 kB / 352.5 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.08866, allocations: 59.53 kB / 352.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.08885, allocations: 51.89 kB / 352.6 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002463/0.0891, allocations: 250.8 kB / 352.9 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.08927, allocations: 72.78 kB / 352.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.0894, allocations: 87.59 kB / 353 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.08953, allocations: 103.5 kB / 353.1 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.304e-05/0.08957, allocations: 19.94 kB / 353.1 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.864e-05/0.08962, allocations: 12 kB / 353.1 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.033e-05/0.08966, allocations: 35.84 kB / 353.2 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.79e-05/0.08977, allocations: 107.5 kB / 353.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.08998, allocations: 235.3 kB / 353.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.08999, allocations: 4 kB / 353.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.09, allocations: 0 / 353.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.09002, allocations: 4 kB / 353.5 MB, free: 0.6875 MB / 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.0006489/0.09067, allocations: 0.5068 MB / 354 MB, free: 136 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.09071, allocations: 8.031 kB / 354 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.694e-05/0.09076, allocations: 54.73 kB / 354.1 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.528e-05/0.09081, allocations: 24.66 kB / 354.1 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.09106, allocations: 240.6 kB / 354.3 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.09109, allocations: 16.81 kB / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.09113, allocations: 24.38 kB / 354.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.09147, allocations: 213.9 kB / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.0915, allocations: 3.906 kB / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.09153, allocations: 12 kB / 354.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.09154, allocations: 7.938 kB / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002528/0.0918, allocations: 121.7 kB / 354.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009173/0.09273, allocations: 0.7171 MB / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/0.093, allocations: 158.4 kB / 355.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.09314, allocations: 64.84 kB / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.09317, allocations: 0 / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.0932, allocations: 42.55 kB / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.222e-06/0.09321, allocations: 0 / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001481/0.09469, allocations: 0.8785 MB / 356.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.09474, allocations: 51.41 kB / 356.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.0949, allocations: 179.2 kB / 356.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.09493, allocations: 33.7 kB / 356.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.301e-05/0.09503, allocations: 152.1 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.774e-05/0.09509, allocations: 86.73 kB / 357.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.566e-05/0.09516, allocations: 45.7 kB / 357.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.09527, allocations: 330.8 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.0954, allocations: 55.97 kB / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.09556, allocations: 100.3 kB / 357.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/0.09583, allocations: 160.2 kB / 357.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.09584, allocations: 0 / 357.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004423/0.09629, allocations: 261.9 kB / 358 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.09631, allocations: 4 kB / 358 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.09632, allocations: 0 / 358 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001609/0.09649, allocations: 36.84 kB / 358.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.09671, allocations: 47.91 kB / 358.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.09781, allocations: 1.382 MB / 359.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.09794, allocations: 11.97 kB / 359.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.09797, allocations: 8 kB / 359.5 MB, free: 10.2 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.0001342/0.09811, allocations: 137.8 kB / 359.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.141e-05/0.09815, allocations: 15.81 kB / 359.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.08e-05/0.09821, allocations: 29.86 kB / 359.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.09822, allocations: 4 kB / 359.7 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.09823, allocations: 0 / 359.7 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.09824, allocations: 3.938 kB / 359.7 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008756/0.09912, allocations: 0.6462 MB / 360.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.09914, allocations: 0 / 360.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002076/0.09935, allocations: 47.91 kB / 360.4 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001234/0.09949, allocations: 40.89 kB / 360.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.09952, allocations: 4 kB / 360.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.1006, allocations: 1.382 MB / 361.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.1006, allocations: 3.938 kB / 361.8 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005657/0.1012, allocations: 405.9 kB / 362.2 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.9e-05/0.1012, allocations: 92.86 kB / 362.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.1013, allocations: 12.06 kB / 362.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.1014, allocations: 4 kB / 362.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.45e-05/0.1015, allocations: 24.02 kB / 362.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.1015, allocations: 11.94 kB / 362.4 MB, free: 7.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.732e-05/0.1016, allocations: 124.8 kB / 362.5 MB, free: 6.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1016, allocations: 4 kB / 362.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003104/0.1019, allocations: 56 kB / 362.5 MB, free: 6.914 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.0008177/0.1027, allocations: 0.9453 MB / 363.5 MB, free: 5.934 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004937/0.1032, allocations: 286.5 kB / 363.8 MB, free: 5.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1032, allocations: 0 / 363.8 MB, free: 5.641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.1035, allocations: 223.6 kB / 364 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.104, allocations: 37.2 kB / 364 MB, free: 5.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/0.107, allocations: 2.625 MB / 366.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.1073, allocations: 0.748 MB / 367.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.76e-05/0.1074, allocations: 21.94 kB / 367.4 MB, free: 1.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.577e-05/0.1075, allocations: 71.41 kB / 367.5 MB, free: 1.773 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1075, allocations: 0 / 367.5 MB, free: 1.773 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1682/0.2757, allocations: 4.396 MB / 371.9 MB, free: 24.91 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/0.2759, allocations: 221.8 kB / 372.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/2.106, allocations: 1.812 kB / 372.1 MB, free: 24.66 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