Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",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.001318/0.001318, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.00119/0.00119, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.335/1.335, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001604/0.001604, allocations: 56.39 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08874/0.09035, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003481/0.09387, allocations: 2.349 MB / 377 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.09495, allocations: 0.6239 MB / 377.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.09509, allocations: 4 kB / 377.6 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.09527, allocations: 43.58 kB / 377.7 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.09542, allocations: 71.34 kB / 377.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000212/0.09564, allocations: 51.92 kB / 377.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003021/0.09595, allocations: 254.8 kB / 378 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.09615, allocations: 96.28 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.09632, allocations: 95.64 kB / 378.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.09648, allocations: 107.5 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.435e-05/0.09652, allocations: 20 kB / 378.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.96e-05/0.09657, allocations: 20 kB / 378.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.523e-05/0.09662, allocations: 39.84 kB / 378.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.09675, allocations: 119.3 kB / 378.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003053/0.09706, allocations: 251 kB / 378.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.09707, allocations: 0 / 378.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.09708, allocations: 0 / 378.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.09709, allocations: 0 / 378.8 MB, free: 0.9414 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007348/0.09783, allocations: 0.5144 MB / 379.3 MB, free: 388 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.09788, allocations: 15.97 kB / 379.3 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.922e-05/0.09794, allocations: 50.73 kB / 379.3 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.661e-05/0.098, allocations: 24.8 kB / 379.4 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000336/0.09834, allocations: 248.6 kB / 379.6 MB, free: 0 / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1632/0.2615, allocations: 14.36 kB / 379.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2617, allocations: 22.66 kB / 379.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004396/0.2621, allocations: 207.8 kB / 379.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.2622, allocations: 4.125 kB / 379.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.2622, allocations: 8.656 kB / 379.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.2622, allocations: 8.203 kB / 379.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002535/0.2625, allocations: 131.5 kB / 380 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009646/0.2634, allocations: 0.7019 MB / 380.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/0.2637, allocations: 151.2 kB / 380.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.2639, allocations: 68.22 kB / 380.9 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.2639, allocations: 3.312 kB / 380.9 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.2639, allocations: 40.83 kB / 381 MB, free: 12.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.964e-06/0.2639, allocations: 0 / 381 MB, free: 12.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001413/0.2653, allocations: 0.8896 MB / 381.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.764e-05/0.2654, allocations: 53.97 kB / 381.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.2656, allocations: 171.8 kB / 382.1 MB, free: 11.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.2656, allocations: 30.02 kB / 382.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.522e-05/0.2657, allocations: 151.2 kB / 382.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.815e-05/0.2657, allocations: 91.03 kB / 382.3 MB, free: 11.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-05/0.2658, allocations: 50.83 kB / 382.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.745e-05/0.2659, allocations: 329.4 kB / 382.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.266, allocations: 53.81 kB / 382.8 MB, free: 11.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.2662, allocations: 100.8 kB / 382.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.2665, allocations: 168.1 kB / 383 MB, free: 11.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2665, allocations: 4.438 kB / 383 MB, free: 11.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004832/0.267, allocations: 249.1 kB / 383.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.267, allocations: 5.562 kB / 383.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.267, allocations: 3.266 kB / 383.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/0.2672, allocations: 40.16 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.2674, allocations: 47.89 kB / 383.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009424/0.2684, allocations: 1.491 MB / 384.9 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.2685, allocations: 8.594 kB / 384.9 MB, free: 9.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.2685, allocations: 8.062 kB / 384.9 MB, free: 9.602 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001005/0.2686, allocations: 140 kB / 385 MB, free: 9.465 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.062e-05/0.2687, allocations: 27.89 kB / 385 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.454e-05/0.2687, allocations: 23.59 kB / 385.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2688, allocations: 2.469 kB / 385.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.2688, allocations: 1.188 kB / 385.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2688, allocations: 1.688 kB / 385.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008385/0.2696, allocations: 0.655 MB / 385.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2696, allocations: 0 / 385.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.2698, allocations: 41.25 kB / 385.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001126/0.27, allocations: 33.09 kB / 385.8 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.27, allocations: 9.797 kB / 385.8 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008321/0.2708, allocations: 1.484 MB / 387.3 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2708, allocations: 0.7969 kB / 387.3 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005025/0.2713, allocations: 405.6 kB / 387.7 MB, free: 7.215 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.2714, allocations: 100.3 kB / 387.8 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.2714, allocations: 6.812 kB / 387.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.2715, allocations: 12.72 kB / 387.8 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.774e-05/0.2716, allocations: 21.58 kB / 387.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.2716, allocations: 5.469 kB / 387.8 MB, free: 7.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.056e-05/0.2717, allocations: 133.6 kB / 388 MB, free: 6.996 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2717, allocations: 0 / 388 MB, free: 6.996 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.272, allocations: 57.81 kB / 388 MB, free: 6.988 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.0006983/0.2728, allocations: 0.935 MB / 388.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00051/0.2733, allocations: 305.1 kB / 389.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2733, allocations: 3.938 kB / 389.2 MB, free: 6.016 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.2736, allocations: 212.1 kB / 389.5 MB, free: 5.875 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.274, allocations: 47.28 kB / 389.5 MB, free: 5.859 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/0.2768, allocations: 2.534 MB / 392 MB, free: 3.996 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000179/0.277, allocations: 0.7473 MB / 392.8 MB, free: 3.293 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.255e-05/0.2771, allocations: 20.98 kB / 392.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.178e-05/0.2772, allocations: 68.58 kB / 392.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2772, allocations: 0 / 392.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03269/0.3099, allocations: 4.731 MB / 397.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.719/10.03, allocations: 10.39 kB / 397.6 MB, free: 2.414 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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(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.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.tau,torque.useSupport