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.001343/0.001343, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001244/0.001245, allocations: 187 kB / 18.67 MB, free: 4.395 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.349/1.349, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001695/0.001695, allocations: 51.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.09069, allocations: 46.63 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003816/0.09455, allocations: 2.333 MB / 377 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.0958, allocations: 0.6317 MB / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.09605, allocations: 7.938 kB / 377.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001933/0.09628, allocations: 31.66 kB / 377.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.09656, allocations: 79.28 kB / 377.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.09681, allocations: 59.91 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003878/0.0972, allocations: 270.7 kB / 378.1 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002445/0.09746, allocations: 102.7 kB / 378.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.09768, allocations: 107.6 kB / 378.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.0979, allocations: 111.5 kB / 378.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.059e-05/0.09796, allocations: 20 kB / 378.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.18e-05/0.09802, allocations: 24 kB / 378.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.635e-05/0.09808, allocations: 47.78 kB / 378.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.09823, allocations: 127.4 kB / 378.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003665/0.09861, allocations: 262.9 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.09862, allocations: 0 / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09863, allocations: 0 / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.09865, allocations: 4 kB / 378.8 MB, free: 0.8477 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.0008304/0.09949, allocations: 0.5299 MB / 379.4 MB, free: 276 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.09954, allocations: 11.89 kB / 379.4 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.406e-05/0.09963, allocations: 54.73 kB / 379.4 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.958e-05/0.09971, allocations: 32.75 kB / 379.5 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1636/0.2633, allocations: 245.5 kB / 379.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.2633, allocations: 15.16 kB / 379.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.199e-05/0.2634, allocations: 23.62 kB / 379.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.2638, allocations: 191.9 kB / 379.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.2639, allocations: 8.078 kB / 379.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.2639, allocations: 7.812 kB / 380 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.2639, allocations: 4.969 kB / 380 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000267/0.2642, allocations: 148.4 kB / 380.1 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008462/0.265, allocations: 0.6231 MB / 380.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.2653, allocations: 182 kB / 380.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.2655, allocations: 100.2 kB / 381 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.2655, allocations: 6.672 kB / 381 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.2655, allocations: 31.94 kB / 381 MB, free: 12.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.044e-06/0.2655, allocations: 0 / 381 MB, free: 12.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001783/0.2673, allocations: 1.076 MB / 382.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.2674, allocations: 59.39 kB / 382.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001811/0.2676, allocations: 179.7 kB / 382.3 MB, free: 11.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.2676, allocations: 31.88 kB / 382.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.486e-05/0.2677, allocations: 134.7 kB / 382.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.164e-05/0.2678, allocations: 125.6 kB / 382.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.345e-05/0.2679, allocations: 53.17 kB / 382.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.062e-05/0.2679, allocations: 335.5 kB / 383 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.2681, allocations: 70.3 kB / 383.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/0.2683, allocations: 105.4 kB / 383.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002745/0.2685, allocations: 192.7 kB / 383.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2686, allocations: 1.953 kB / 383.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000445/0.269, allocations: 295.4 kB / 383.7 MB, free: 10.83 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.269, allocations: 10.31 kB / 383.7 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.269, allocations: 1.062 kB / 383.7 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001757/0.2692, allocations: 47.83 kB / 383.7 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.2695, allocations: 56.38 kB / 383.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.2706, allocations: 1.741 MB / 385.5 MB, free: 9.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.2707, allocations: 11.98 kB / 385.5 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.2707, allocations: 11.59 kB / 385.5 MB, free: 9.145 MB / 318.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 9.92e-05/0.2708, allocations: 136.4 kB / 385.7 MB, free: 9.012 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.308e-05/0.2709, allocations: 23.62 kB / 385.7 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.188e-05/0.271, allocations: 31.28 kB / 385.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.271, allocations: 12.11 kB / 385.7 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.271, allocations: 1.594 kB / 385.7 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.271, allocations: 2.25 kB / 385.7 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.272, allocations: 0.7777 MB / 386.5 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2721, allocations: 1.547 kB / 386.5 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002486/0.2723, allocations: 61.42 kB / 386.6 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001151/0.2724, allocations: 35.62 kB / 386.6 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.2725, allocations: 7.797 kB / 386.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008345/0.2733, allocations: 1.483 MB / 388.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.2733, allocations: 1.031 kB / 388.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006169/0.2739, allocations: 489.3 kB / 388.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.274, allocations: 97.12 kB / 388.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.274, allocations: 15.03 kB / 388.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.2742, allocations: 12.86 kB / 388.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.666e-05/0.2742, allocations: 26.31 kB / 388.7 MB, free: 6.516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.2743, allocations: 7.641 kB / 388.7 MB, free: 6.516 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.284e-05/0.2744, allocations: 134.3 kB / 388.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2744, allocations: 0 / 388.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003704/0.2747, allocations: 64.34 kB / 388.9 MB, free: 6.418 MB / 318.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.0008076/0.2756, allocations: 1.025 MB / 390 MB, free: 5.582 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005655/0.2761, allocations: 335.6 kB / 390.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2761, allocations: 0 / 390.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.2764, allocations: 249.9 kB / 390.5 MB, free: 5.242 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004044/0.2769, allocations: 42.2 kB / 390.6 MB, free: 5.227 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.2799, allocations: 2.751 MB / 393.3 MB, free: 3.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.2801, allocations: 0.7511 MB / 394.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001109/0.2803, allocations: 28.08 kB / 394.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.2804, allocations: 76.44 kB / 394.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2804, allocations: 0 / 394.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03279/0.3132, allocations: 5.255 MB / 399.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.697/10.01, allocations: 6.531 kB / 399.4 MB, free: 1.664 MB / 318.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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