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.001307/0.001307, allocations: 110.8 kB / 17.06 MB, free: 5.996 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.001293/0.001292, allocations: 200 kB / 18.01 MB, free: 5.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.358/1.358, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 51.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2508, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003652/0.2545, allocations: 2.343 MB / 402.6 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.2555, allocations: 0.5843 MB / 403.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.2557, allocations: 4 kB / 403.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.2559, allocations: 39.59 kB / 403.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.2561, allocations: 79.33 kB / 403.3 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002027/0.2563, allocations: 47.88 kB / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000317/0.2566, allocations: 278.8 kB / 403.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.2568, allocations: 102.7 kB / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.257, allocations: 107.5 kB / 403.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001595/0.2572, allocations: 115.5 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.99e-05/0.2572, allocations: 24 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.182e-05/0.2573, allocations: 20 kB / 404 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.197e-05/0.2573, allocations: 51.83 kB / 404 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.2574, allocations: 119.4 kB / 404.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003417/0.2578, allocations: 269.9 kB / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2578, allocations: 0 / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.337e-06/0.2578, allocations: 0 / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2578, allocations: 7.875 kB / 404.4 MB, free: 4.656 MB / 318.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.0007695/0.2586, allocations: 0.5289 MB / 404.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.2587, allocations: 11.89 kB / 404.9 MB, free: 4.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.033e-05/0.2587, allocations: 58.72 kB / 405 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.307e-05/0.2588, allocations: 28.75 kB / 405 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.2591, allocations: 249.3 kB / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.2592, allocations: 12.81 kB / 405.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.153e-05/0.2592, allocations: 28.33 kB / 405.3 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.2596, allocations: 195.4 kB / 405.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.2596, allocations: 4 kB / 405.5 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.2596, allocations: 8 kB / 405.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.2596, allocations: 8 kB / 405.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.2599, allocations: 137.7 kB / 405.7 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009702/0.2609, allocations: 0.6231 MB / 406.3 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003224/0.2612, allocations: 182.5 kB / 406.5 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.2614, allocations: 100.5 kB / 406.6 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.2615, allocations: 8 kB / 406.6 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.2615, allocations: 30.56 kB / 406.6 MB, free: 2.293 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.532e-06/0.2615, allocations: 0 / 406.6 MB, free: 2.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002001/0.2635, allocations: 1.07 MB / 407.7 MB, free: 1.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.2636, allocations: 59.34 kB / 407.7 MB, free: 1.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.2637, allocations: 180 kB / 407.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.2638, allocations: 33.7 kB / 407.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.978e-05/0.2639, allocations: 144.8 kB / 408.1 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.839e-05/0.264, allocations: 119 kB / 408.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.09e-05/0.2641, allocations: 53.7 kB / 408.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2642, allocations: 330.8 kB / 408.6 MB, free: 184 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.2644, allocations: 71.91 kB / 408.6 MB, free: 112 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.2646, allocations: 115.6 kB / 408.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003186/0.2649, allocations: 193.3 kB / 408.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.2649, allocations: 0 / 408.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005042/0.2654, allocations: 298.2 kB / 409.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2655, allocations: 8.062 kB / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.2655, allocations: 7.984 kB / 409.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001756/0.2656, allocations: 40.78 kB / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.2659, allocations: 55.91 kB / 409.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001618/0.2675, allocations: 1.748 MB / 411.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.2677, allocations: 8 kB / 411.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.2677, allocations: 8 kB / 411.1 MB, free: 13.48 MB / 334.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.0001492/0.2678, allocations: 143.2 kB / 411.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.737e-05/0.2679, allocations: 27.8 kB / 411.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.254e-05/0.268, allocations: 38.58 kB / 411.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.268, allocations: 4 kB / 411.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.268, allocations: 0 / 411.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.268, allocations: 0 / 411.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.2691, allocations: 0.7737 MB / 412.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.2691, allocations: 4 kB / 412.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.2694, allocations: 63.89 kB / 412.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001135/0.2695, allocations: 28.84 kB / 412.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.2695, allocations: 8.094 kB / 412.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.2708, allocations: 1.5 MB / 413.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.2708, allocations: 0 / 413.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006847/0.2715, allocations: 478.7 kB / 414.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.63e-05/0.2716, allocations: 101 kB / 414.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.2716, allocations: 4 kB / 414.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.2718, allocations: 8.047 kB / 414.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.543e-05/0.2718, allocations: 31.91 kB / 414.3 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.2719, allocations: 11.98 kB / 414.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.272, allocations: 127.2 kB / 414.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.272, allocations: 0 / 414.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003575/0.2723, allocations: 64 kB / 414.5 MB, free: 9.801 MB / 334.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.001081/0.2734, allocations: 1.036 MB / 415.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006341/0.2741, allocations: 331.6 kB / 415.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2741, allocations: 0 / 415.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003479/0.2745, allocations: 234.8 kB / 416.1 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004382/0.2749, allocations: 59.08 kB / 416.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003502/0.2784, allocations: 2.765 MB / 418.9 MB, free: 5.215 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.2788, allocations: 0.7564 MB / 419.7 MB, free: 4.434 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.995e-05/0.2789, allocations: 26.27 kB / 419.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.279, allocations: 75.41 kB / 419.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2791, allocations: 4 kB / 419.8 MB, free: 4.332 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04001/0.3191, allocations: 5.238 MB / 425 MB, free: 15.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.47, allocations: 11.67 kB / 425 MB, free: 15.2 MB / 350.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