Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_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.0008923/0.0008923, allocations: 96.39 kB / 17.3 MB, free: 6.391 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.0009087/0.0009087, allocations: 177.5 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.209/1.209, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004287/0.0004287, allocations: 8.516 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0773/0.07774, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002298/0.08008, allocations: 2.032 MB / 331.1 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007852/0.08087, allocations: 0.6087 MB / 331.7 MB, free: 1 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.189e-05/0.08098, allocations: 4 kB / 331.7 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.921e-05/0.08109, allocations: 27.78 kB / 331.7 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.08122, allocations: 67.45 kB / 331.8 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001581/0.08139, allocations: 51.89 kB / 331.8 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.08169, allocations: 262.8 kB / 332.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.08188, allocations: 91.3 kB / 332.2 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.08202, allocations: 87.53 kB / 332.3 MB, free: 428 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.08215, allocations: 99.48 kB / 332.4 MB, free: 328 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.856e-05/0.08218, allocations: 12 kB / 332.4 MB, free: 316 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.798e-05/0.08222, allocations: 12 kB / 332.4 MB, free: 304 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.629e-05/0.08226, allocations: 39.84 kB / 332.4 MB, free: 264 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.08237, allocations: 137 kB / 332.6 MB, free: 120 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.08259, allocations: 247.2 kB / 332.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.0826, allocations: 4 kB / 332.8 MB, free: 15.87 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.08261, allocations: 0 / 332.8 MB, free: 15.87 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.08263, allocations: 4 kB / 332.8 MB, free: 15.87 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0005618/0.08319, allocations: 491 kB / 333.3 MB, free: 15.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.08324, allocations: 8.031 kB / 333.3 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.619e-05/0.08333, allocations: 62.72 kB / 333.4 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.239e-05/0.08339, allocations: 24.66 kB / 333.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.08364, allocations: 244.6 kB / 333.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.08366, allocations: 20.81 kB / 333.7 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.077e-05/0.08371, allocations: 28.31 kB / 333.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.08404, allocations: 195.4 kB / 333.9 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.08407, allocations: 7.906 kB / 333.9 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.08409, allocations: 8 kB / 333.9 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.0841, allocations: 4 kB / 333.9 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002938/0.0844, allocations: 145.7 kB / 334 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000821/0.08523, allocations: 0.6385 MB / 334.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002686/0.08551, allocations: 178.5 kB / 334.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.08569, allocations: 104.8 kB / 334.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.08571, allocations: 0 / 334.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.08574, allocations: 42.56 kB / 335 MB, free: 13.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.011e-06/0.08575, allocations: 3.938 kB / 335 MB, free: 13.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001823/0.08757, allocations: 1.076 MB / 336.1 MB, free: 12.35 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.436e-05/0.08762, allocations: 63.33 kB / 336.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.08778, allocations: 178.9 kB / 336.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.08781, allocations: 33.7 kB / 336.3 MB, free: 12.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.664e-05/0.08789, allocations: 136.7 kB / 336.5 MB, free: 11.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.388e-05/0.08797, allocations: 122.3 kB / 336.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.08802, allocations: 29.7 kB / 336.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.08814, allocations: 338.8 kB / 336.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.08828, allocations: 71.91 kB / 337 MB, free: 11.35 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.08845, allocations: 110.3 kB / 337.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.08876, allocations: 200.7 kB / 337.3 MB, free: 11.03 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.08877, allocations: 0 / 337.3 MB, free: 11.03 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004638/0.08924, allocations: 294 kB / 337.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.08927, allocations: 8 kB / 337.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.08927, allocations: 0 / 337.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001517/0.08943, allocations: 44.83 kB / 337.7 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.08967, allocations: 59.91 kB / 337.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/0.09091, allocations: 1.565 MB / 339.3 MB, free: 8.918 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.09104, allocations: 16.03 kB / 339.3 MB, free: 8.902 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.09106, allocations: 4 kB / 339.3 MB, free: 8.898 MB / 286.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.0001115/0.09118, allocations: 149.8 kB / 339.5 MB, free: 8.742 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.32e-05/0.09122, allocations: 23.72 kB / 339.5 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.038e-05/0.09129, allocations: 26.59 kB / 339.5 MB, free: 8.695 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.0913, allocations: 4 kB / 339.5 MB, free: 8.691 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.09131, allocations: 4 kB / 339.5 MB, free: 8.688 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.09132, allocations: 3.984 kB / 339.5 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.09237, allocations: 0.7854 MB / 340.3 MB, free: 7.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.09239, allocations: 4.031 kB / 340.3 MB, free: 7.816 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/0.09264, allocations: 59.91 kB / 340.4 MB, free: 7.758 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.922e-05/0.09275, allocations: 36.78 kB / 340.4 MB, free: 7.719 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.09277, allocations: 11.98 kB / 340.4 MB, free: 7.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009828/0.09376, allocations: 1.378 MB / 341.8 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.09378, allocations: 7.922 kB / 341.8 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000626/0.09441, allocations: 490.4 kB / 342.3 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.474e-05/0.09448, allocations: 100.8 kB / 342.4 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.09451, allocations: 4 kB / 342.4 MB, free: 5.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.09465, allocations: 15.94 kB / 342.4 MB, free: 5.543 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/0.09471, allocations: 27.95 kB / 342.4 MB, free: 5.516 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.09473, allocations: 15.98 kB / 342.4 MB, free: 5.5 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.845e-05/0.09484, allocations: 127.2 kB / 342.6 MB, free: 5.375 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09484, allocations: 0 / 342.6 MB, free: 5.375 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003339/0.09518, allocations: 64 kB / 342.6 MB, free: 5.312 MB / 286.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.000909/0.0961, allocations: 1.021 MB / 343.6 MB, free: 4.254 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005438/0.09666, allocations: 343.9 kB / 344 MB, free: 3.906 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.09668, allocations: 0 / 344 MB, free: 3.906 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.097, allocations: 246.8 kB / 344.2 MB, free: 3.652 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.09745, allocations: 43.97 kB / 344.3 MB, free: 3.609 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/0.1007, allocations: 2.925 MB / 347.2 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.101, allocations: 0.76 MB / 347.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.715e-05/0.1011, allocations: 22.28 kB / 348 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.1012, allocations: 71.42 kB / 348 MB, free: 15.69 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1012, allocations: 0 / 348 MB, free: 15.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01424/0.1154, allocations: 4.788 MB / 352.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001691/0.1156, allocations: 212.8 kB / 353 MB, free: 10.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/1.85, allocations: 4 kB / 353 MB, free: 10.65 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_3.2.3_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),fixed.flange.phi,fixed.flange.tau,fixed.phi0,freqHz,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.freqHz,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