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.001231/0.001231, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001195/0.001195, allocations: 198 kB / 18.07 MB, free: 5.41 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.273/1.273, allocations: 205.1 MB / 223.9 MB, free: 12.38 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.001067/0.001067, allocations: 56.14 kB / 280.1 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07965/0.08073, allocations: 46.63 MB / 326.7 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003967/0.08475, allocations: 2.379 MB / 329.1 MB, free: 2.375 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.08588, allocations: 0.6242 MB / 329.7 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.08603, allocations: 7.938 kB / 329.7 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.08622, allocations: 23.84 kB / 329.7 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001362/0.08636, allocations: 55.48 kB / 329.8 MB, free: 1.656 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002032/0.08657, allocations: 51.95 kB / 329.8 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.08685, allocations: 242.8 kB / 330.1 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.08702, allocations: 76.73 kB / 330.2 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.08715, allocations: 95.59 kB / 330.2 MB, free: 1.199 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.08729, allocations: 99.53 kB / 330.3 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.08734, allocations: 12 kB / 330.4 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.408e-05/0.08738, allocations: 20 kB / 330.4 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.367e-05/0.08743, allocations: 43.78 kB / 330.4 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.08754, allocations: 107.4 kB / 330.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.08776, allocations: 235.4 kB / 330.8 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.08777, allocations: 3.938 kB / 330.8 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.08778, allocations: 0 / 330.8 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.08779, allocations: 0 / 330.8 MB, free: 0.6875 MB / 270.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.0006995/0.0885, allocations: 0.5107 MB / 331.3 MB, free: 128 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.08855, allocations: 16.03 kB / 331.3 MB, free: 112 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.031e-05/0.08861, allocations: 50.73 kB / 331.3 MB, free: 52 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.825e-05/0.08867, allocations: 28.59 kB / 331.4 MB, free: 24 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.08895, allocations: 240.6 kB / 331.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.08897, allocations: 20.75 kB / 331.6 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.736e-05/0.08902, allocations: 16.38 kB / 331.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.08937, allocations: 214 kB / 331.8 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.0894, allocations: 7.906 kB / 331.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.08943, allocations: 8 kB / 331.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.08944, allocations: 8 kB / 331.9 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002467/0.08969, allocations: 133.6 kB / 332 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009751/0.09068, allocations: 0.7016 MB / 332.7 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.09094, allocations: 142.5 kB / 332.8 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.09107, allocations: 72.83 kB / 332.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.0911, allocations: 11.92 kB / 332.9 MB, free: 14.35 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.09113, allocations: 34.56 kB / 332.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.09114, allocations: 0 / 332.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001464/0.09261, allocations: 0.8761 MB / 333.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.09266, allocations: 63.39 kB / 333.9 MB, free: 13.26 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.09281, allocations: 170.7 kB / 334.1 MB, free: 13.08 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.09284, allocations: 33.7 kB / 334.1 MB, free: 13.04 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.245e-05/0.09294, allocations: 136.3 kB / 334.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.127e-05/0.09302, allocations: 94.64 kB / 334.3 MB, free: 12.81 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.83e-05/0.09309, allocations: 45.7 kB / 334.4 MB, free: 12.76 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.985e-05/0.0932, allocations: 330.8 kB / 334.7 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.09332, allocations: 63.97 kB / 334.7 MB, free: 12.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.09346, allocations: 96.2 kB / 334.8 MB, free: 12.26 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.09373, allocations: 176.1 kB / 335 MB, free: 12.07 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.09374, allocations: 0 / 335 MB, free: 12.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004263/0.09418, allocations: 246 kB / 335.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.09421, allocations: 8 kB / 335.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.09422, allocations: 0 / 335.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001702/0.09439, allocations: 36.95 kB / 335.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.09462, allocations: 55.91 kB / 335.3 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.09581, allocations: 1.378 MB / 336.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.09593, allocations: 11.94 kB / 336.7 MB, free: 10.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.09596, allocations: 8 kB / 336.7 MB, free: 10.18 MB / 286.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.0001226/0.09609, allocations: 133.8 kB / 336.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.09613, allocations: 23.69 kB / 336.9 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.794e-05/0.09618, allocations: 25.86 kB / 336.9 MB, free: 9.996 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.09619, allocations: 4 kB / 336.9 MB, free: 9.992 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.0962, allocations: 0 / 336.9 MB, free: 9.992 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.09621, allocations: 8 kB / 336.9 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007997/0.09702, allocations: 0.6441 MB / 337.6 MB, free: 9.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.09703, allocations: 4.062 kB / 337.6 MB, free: 9.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002076/0.09725, allocations: 51.91 kB / 337.6 MB, free: 9.215 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001082/0.09736, allocations: 32.83 kB / 337.7 MB, free: 9.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.09739, allocations: 8 kB / 337.7 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009295/0.09832, allocations: 1.378 MB / 339.1 MB, free: 7.66 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.09834, allocations: 7.969 kB / 339.1 MB, free: 7.652 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/0.09885, allocations: 406 kB / 339.5 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.104e-05/0.09891, allocations: 92.92 kB / 339.5 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.442e-05/0.09894, allocations: 4 kB / 339.6 MB, free: 7.117 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.09907, allocations: 8 kB / 339.6 MB, free: 7.109 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.09912, allocations: 16.02 kB / 339.6 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.09914, allocations: 12 kB / 339.6 MB, free: 7.082 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.07e-05/0.09923, allocations: 120.8 kB / 339.7 MB, free: 6.965 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.09924, allocations: 4 kB / 339.7 MB, free: 6.961 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003039/0.09955, allocations: 63.98 kB / 339.8 MB, free: 6.898 MB / 286.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.0007728/0.1003, allocations: 0.9492 MB / 340.7 MB, free: 5.91 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004751/0.1008, allocations: 278.5 kB / 341 MB, free: 5.625 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1008, allocations: 0 / 341 MB, free: 5.625 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002734/0.1011, allocations: 223.2 kB / 341.2 MB, free: 5.395 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004961/0.1016, allocations: 38.72 kB / 341.2 MB, free: 5.359 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.1044, allocations: 2.61 MB / 343.9 MB, free: 2.637 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.1047, allocations: 0.748 MB / 344.6 MB, free: 1.863 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.796e-05/0.1048, allocations: 21.94 kB / 344.6 MB, free: 1.844 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.534e-05/0.1049, allocations: 67.41 kB / 344.7 MB, free: 1.777 MB / 286.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1049, allocations: 4 kB / 344.7 MB, free: 1.773 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01667/0.1216, allocations: 4.4 MB / 349.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/0.1218, allocations: 232.1 kB / 349.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/1.904, allocations: 0 / 349.3 MB, free: 13.07 MB / 302.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","../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