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.001747/0.001747, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001929/0.001929, allocations: 183 kB / 18.66 MB, free: 4.418 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.343/1.343, allocations: 205.1 MB / 224.5 MB, free: 12.28 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.001392/0.001392, allocations: 52.36 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08653/0.08793, allocations: 46.63 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003906/0.09189, allocations: 2.333 MB / 377 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.09324, allocations: 0.6317 MB / 377.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.09351, allocations: 4 kB / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002205/0.09378, allocations: 35.59 kB / 377.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002668/0.09406, allocations: 79.33 kB / 377.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.09431, allocations: 55.88 kB / 377.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003812/0.0947, allocations: 266.8 kB / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/0.09495, allocations: 111 kB / 378.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.09518, allocations: 107.5 kB / 378.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.09538, allocations: 123.5 kB / 378.4 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.468e-05/0.09543, allocations: 20 kB / 378.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.849e-05/0.09549, allocations: 20 kB / 378.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.549e-05/0.09554, allocations: 43.84 kB / 378.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.09567, allocations: 123.3 kB / 378.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003057/0.09598, allocations: 267 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.096, allocations: 0 / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09601, allocations: 0 / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.09602, allocations: 0 / 378.8 MB, free: 0.8516 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.0008395/0.09687, allocations: 0.5185 MB / 379.4 MB, free: 292 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.09693, allocations: 15.89 kB / 379.4 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.559e-05/0.09701, allocations: 62.72 kB / 379.4 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.833e-05/0.09709, allocations: 28.56 kB / 379.5 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1676/0.2647, allocations: 240 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.2648, allocations: 14.97 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.302e-05/0.2649, allocations: 28.98 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004386/0.2653, allocations: 193.6 kB / 379.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.2654, allocations: 4.594 kB / 379.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.2654, allocations: 10.66 kB / 379.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.2654, allocations: 6.656 kB / 379.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002831/0.2657, allocations: 142.3 kB / 380.1 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009767/0.2667, allocations: 0.625 MB / 380.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003081/0.267, allocations: 181.3 kB / 380.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.2672, allocations: 97.81 kB / 381 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.2672, allocations: 5.562 kB / 381 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.2672, allocations: 32.92 kB / 381 MB, free: 12.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.826e-06/0.2672, allocations: 1.375 kB / 381 MB, free: 12.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002003/0.2693, allocations: 1.064 MB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.2693, allocations: 67.27 kB / 382.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.2695, allocations: 176.2 kB / 382.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2696, allocations: 32.2 kB / 382.4 MB, free: 11.67 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.625e-05/0.2697, allocations: 138.1 kB / 382.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.232e-05/0.2697, allocations: 116.8 kB / 382.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.397e-05/0.2698, allocations: 54.11 kB / 382.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.484e-05/0.2699, allocations: 338.6 kB / 383 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.2701, allocations: 73.16 kB / 383.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.2703, allocations: 107.1 kB / 383.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002976/0.2706, allocations: 189 kB / 383.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2706, allocations: 0 / 383.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004922/0.2711, allocations: 300.6 kB / 383.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.2711, allocations: 10.36 kB / 383.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2711, allocations: 4.906 kB / 383.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001898/0.2713, allocations: 43.95 kB / 383.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.2716, allocations: 56.11 kB / 383.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.2728, allocations: 1.734 MB / 385.5 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.2729, allocations: 11.19 kB / 385.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.273, allocations: 10.62 kB / 385.5 MB, free: 9.102 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 0.0001341/0.2731, allocations: 137.1 kB / 385.6 MB, free: 8.969 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.947e-05/0.2732, allocations: 23 kB / 385.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.131e-05/0.2732, allocations: 40.64 kB / 385.7 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.2732, allocations: 7.094 kB / 385.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.2732, allocations: 1.125 kB / 385.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2733, allocations: 5.109 kB / 385.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.2743, allocations: 0.7719 MB / 386.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2744, allocations: 0 / 386.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002755/0.2746, allocations: 62.92 kB / 386.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001309/0.2748, allocations: 35.7 kB / 386.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.2748, allocations: 7.516 kB / 386.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009237/0.2757, allocations: 1.475 MB / 388.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.2758, allocations: 2.5 kB / 388.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006609/0.2764, allocations: 487.6 kB / 388.5 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.952e-05/0.2765, allocations: 105 kB / 388.6 MB, free: 6.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.878e-05/0.2765, allocations: 11.81 kB / 388.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.2767, allocations: 12.8 kB / 388.7 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.227e-05/0.2768, allocations: 21.88 kB / 388.7 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.2768, allocations: 11.59 kB / 388.7 MB, free: 6.477 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001103/0.2769, allocations: 134.1 kB / 388.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2769, allocations: 1.312 kB / 388.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003989/0.2773, allocations: 63.66 kB / 388.9 MB, free: 6.379 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.0008374/0.2782, allocations: 1.022 MB / 389.9 MB, free: 5.547 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006449/0.2788, allocations: 338.5 kB / 390.3 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2788, allocations: 0 / 390.3 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003194/0.2792, allocations: 242 kB / 390.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004628/0.2796, allocations: 45.48 kB / 390.5 MB, free: 5.191 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.2829, allocations: 2.751 MB / 393.3 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.2831, allocations: 0.7517 MB / 394 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.2833, allocations: 26.03 kB / 394.1 MB, free: 2.539 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.2834, allocations: 76.33 kB / 394.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of SimCode: time 8.21e-07/0.2834, allocations: 0 / 394.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.3104, allocations: 5.343 MB / 399.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.564/9.874, allocations: 9.031 kB / 399.5 MB, free: 1.613 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