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.001434/0.001433, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001284/0.001284, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.303/1.303, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009587/0.0009588, allocations: 46.42 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07897/0.07995, allocations: 49.46 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003426/0.08341, allocations: 2.333 MB / 352.5 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008876/0.08432, allocations: 0.5765 MB / 353.1 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.08444, allocations: 7.938 kB / 353.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.0846, allocations: 35.66 kB / 353.1 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.08474, allocations: 79.27 kB / 353.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.08492, allocations: 55.94 kB / 353.3 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002525/0.08518, allocations: 270.7 kB / 353.5 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.08538, allocations: 98.73 kB / 353.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.08553, allocations: 111.6 kB / 353.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.08567, allocations: 111.5 kB / 353.8 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.3e-05/0.08571, allocations: 23.94 kB / 353.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.695e-05/0.08575, allocations: 20 kB / 353.9 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.705e-05/0.08581, allocations: 55.77 kB / 353.9 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.08592, allocations: 123.4 kB / 354.1 MB, free: 400 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002573/0.08618, allocations: 255.3 kB / 354.3 MB, free: 144 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.0862, allocations: 0 / 354.3 MB, free: 144 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.0862, allocations: 0 / 354.3 MB, free: 144 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.08622, allocations: 4 kB / 354.3 MB, free: 140 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.0007285/0.08695, allocations: 0.5264 MB / 354.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.087, allocations: 15.83 kB / 354.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.842e-05/0.08706, allocations: 58.73 kB / 354.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.08712, allocations: 24.66 kB / 354.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.08738, allocations: 237.8 kB / 355.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.0874, allocations: 16.81 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.08745, allocations: 28.28 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.08778, allocations: 199.4 kB / 355.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.0878, allocations: 0 / 355.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.08783, allocations: 11.98 kB / 355.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.08784, allocations: 11.94 kB / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002686/0.08811, allocations: 133.7 kB / 355.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008438/0.08897, allocations: 0.6307 MB / 356.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.08924, allocations: 178.6 kB / 356.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.08941, allocations: 108.1 kB / 356.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.08943, allocations: 0 / 356.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.08946, allocations: 42.55 kB / 356.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.08947, allocations: 0 / 356.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001731/0.09121, allocations: 1.069 MB / 357.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.09125, allocations: 59.34 kB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.0914, allocations: 184 kB / 357.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.09143, allocations: 29.7 kB / 357.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.874e-05/0.09151, allocations: 140.7 kB / 358 MB, free: 12.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.344e-05/0.09159, allocations: 118.3 kB / 358.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.811e-05/0.09166, allocations: 49.7 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.09177, allocations: 334.8 kB / 358.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.09191, allocations: 67.97 kB / 358.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.09207, allocations: 111.2 kB / 358.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002832/0.09237, allocations: 189.3 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.09238, allocations: 0 / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004527/0.09283, allocations: 302.2 kB / 359.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.09286, allocations: 4 kB / 359.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.09287, allocations: 4.062 kB / 359.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001678/0.09304, allocations: 52.7 kB / 359.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002288/0.09328, allocations: 51.97 kB / 359.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.09456, allocations: 1.748 MB / 361 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.09468, allocations: 8.031 kB / 361 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.09471, allocations: 16.06 kB / 361 MB, free: 8.961 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.0001107/0.09483, allocations: 137.8 kB / 361.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.597e-05/0.09488, allocations: 23.69 kB / 361.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.09494, allocations: 26.66 kB / 361.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.09494, allocations: 4 kB / 361.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.09495, allocations: 0 / 361.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.09496, allocations: 7.984 kB / 361.2 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009874/0.09596, allocations: 0.7786 MB / 362 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.09597, allocations: 8.031 kB / 362 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000255/0.09623, allocations: 55.91 kB / 362 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001033/0.09635, allocations: 32.84 kB / 362.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.09638, allocations: 11.98 kB / 362.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.09739, allocations: 1.489 MB / 363.6 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.0974, allocations: 64 / 363.6 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/0.09801, allocations: 494.3 kB / 364.1 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.898e-05/0.09807, allocations: 92.92 kB / 364.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.826e-05/0.0981, allocations: 12.03 kB / 364.2 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.09824, allocations: 8 kB / 364.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.0983, allocations: 23.97 kB / 364.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.09832, allocations: 12 kB / 364.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.442e-05/0.09841, allocations: 127.2 kB / 364.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.09841, allocations: 0 / 364.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003391/0.09876, allocations: 64 kB / 364.4 MB, free: 5.301 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.0008711/0.09963, allocations: 1.031 MB / 365.4 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005774/0.1002, allocations: 347.6 kB / 365.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1002, allocations: 0 / 365.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003176/0.1006, allocations: 242.5 kB / 366 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000459/0.101, allocations: 52.16 kB / 366 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.1042, allocations: 2.752 MB / 368.8 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1275/0.2317, allocations: 0.7498 MB / 369.5 MB, free: 24.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.2319, allocations: 23.33 kB / 369.6 MB, free: 24.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.232, allocations: 73.09 kB / 369.6 MB, free: 24.83 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.232, allocations: 0.625 kB / 369.6 MB, free: 24.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2355/0.4675, allocations: 5.113 MB / 374.8 MB, free: 24.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.633/10.1, allocations: 2.406 kB / 374.8 MB, free: 24.34 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