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.001307/0.001306, allocations: 105.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.001247/0.001247, allocations: 188.1 kB / 18.66 MB, free: 4.398 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.306/1.306, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001343/0.001343, allocations: 47.94 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0854/0.08675, allocations: 46.63 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.00375/0.09055, allocations: 2.333 MB / 377 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.09182, allocations: 0.6278 MB / 377.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002259/0.09206, allocations: 7.938 kB / 377.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.09229, allocations: 31.66 kB / 377.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002451/0.09255, allocations: 83.27 kB / 377.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.0928, allocations: 51.94 kB / 377.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.09318, allocations: 278.7 kB / 378 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.0934, allocations: 103 kB / 378.1 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001983/0.09361, allocations: 103.6 kB / 378.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.0938, allocations: 119.5 kB / 378.4 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.01e-05/0.09385, allocations: 24 kB / 378.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.332e-05/0.0939, allocations: 23.94 kB / 378.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.807e-05/0.09395, allocations: 47.84 kB / 378.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.09409, allocations: 119.4 kB / 378.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002988/0.09439, allocations: 271 kB / 378.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.0944, allocations: 0 / 378.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09441, allocations: 0 / 378.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.09443, allocations: 0 / 378.8 MB, free: 0.8438 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.000767/0.0952, allocations: 0.5185 MB / 379.4 MB, free: 284 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.09526, allocations: 15.89 kB / 379.4 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.709e-05/0.09532, allocations: 58.73 kB / 379.4 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.37e-05/0.09538, allocations: 28.56 kB / 379.5 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1487/0.244, allocations: 240.2 kB / 379.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.2441, allocations: 16.47 kB / 379.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.2441, allocations: 28.88 kB / 379.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003505/0.2445, allocations: 190.5 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.2445, allocations: 10.91 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.2446, allocations: 8.312 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.2446, allocations: 4.719 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002303/0.2448, allocations: 140.9 kB / 380.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007997/0.2456, allocations: 0.6286 MB / 380.7 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002616/0.2459, allocations: 174.8 kB / 380.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.246, allocations: 102.5 kB / 381 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.2461, allocations: 6.578 kB / 381 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.43e-05/0.2461, allocations: 39.48 kB / 381 MB, free: 12.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.2461, allocations: 0 / 381 MB, free: 12.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001648/0.2477, allocations: 1.067 MB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.2478, allocations: 59.45 kB / 382.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.248, allocations: 180.3 kB / 382.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.248, allocations: 32.28 kB / 382.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.467e-05/0.2481, allocations: 137.7 kB / 382.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.471e-05/0.2481, allocations: 116.6 kB / 382.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.321e-05/0.2482, allocations: 53.06 kB / 382.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.086e-05/0.2483, allocations: 335.4 kB / 383 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.2484, allocations: 74.41 kB / 383.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.2486, allocations: 107.5 kB / 383.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.2489, allocations: 194.2 kB / 383.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.2489, allocations: 1.094 kB / 383.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004455/0.2493, allocations: 294.2 kB / 383.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.2494, allocations: 9.594 kB / 383.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2494, allocations: 0 / 383.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001741/0.2495, allocations: 50.59 kB / 383.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.2498, allocations: 53.95 kB / 383.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.2509, allocations: 1.732 MB / 385.5 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.251, allocations: 13.31 kB / 385.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.251, allocations: 14.72 kB / 385.5 MB, free: 9.098 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.0001041/0.2512, allocations: 132.8 kB / 385.6 MB, free: 8.969 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.156e-05/0.2512, allocations: 22.16 kB / 385.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.958e-05/0.2513, allocations: 34.02 kB / 385.7 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2513, allocations: 7.312 kB / 385.7 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.2513, allocations: 1.281 kB / 385.7 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2513, allocations: 5.312 kB / 385.7 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009348/0.2522, allocations: 0.7755 MB / 386.5 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2523, allocations: 5.844 kB / 386.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.2525, allocations: 56.67 kB / 386.6 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/0.2526, allocations: 40.88 kB / 386.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.2526, allocations: 6.5 kB / 386.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008092/0.2535, allocations: 1.482 MB / 388.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2535, allocations: 1.5 kB / 388.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006156/0.2541, allocations: 485.4 kB / 388.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.441e-05/0.2542, allocations: 99.72 kB / 388.7 MB, free: 6.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.2542, allocations: 12.14 kB / 388.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.2543, allocations: 8.406 kB / 388.7 MB, free: 6.488 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.966e-05/0.2544, allocations: 26.48 kB / 388.7 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.2544, allocations: 7.125 kB / 388.7 MB, free: 6.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.952e-05/0.2545, allocations: 131.7 kB / 388.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2545, allocations: 3.281 kB / 388.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003632/0.2549, allocations: 65.19 kB / 388.9 MB, free: 6.383 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.0007736/0.2556, allocations: 1.025 MB / 389.9 MB, free: 5.547 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005381/0.2562, allocations: 338.1 kB / 390.3 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2562, allocations: 0 / 390.3 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002893/0.2565, allocations: 240.4 kB / 390.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.2569, allocations: 43.41 kB / 390.5 MB, free: 5.195 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/0.2598, allocations: 2.739 MB / 393.3 MB, free: 3.258 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001918/0.26, allocations: 0.7559 MB / 394 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.109e-05/0.2601, allocations: 25.11 kB / 394.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.757e-05/0.2602, allocations: 76.77 kB / 394.1 MB, free: 2.496 MB / 318.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2602, allocations: 0 / 394.1 MB, free: 2.496 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.2882, allocations: 5.354 MB / 399.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.543/9.831, allocations: 0 / 399.5 MB, free: 1.629 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