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.001159/0.001159, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001158/0.001158, allocations: 190 kB / 18.07 MB, free: 5.414 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.292/1.292, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001196/0.001196, allocations: 47.94 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08409/0.0853, allocations: 46.62 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003494/0.08882, allocations: 2.391 MB / 329.1 MB, free: 2.383 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009999/0.08985, allocations: 0.6242 MB / 329.7 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.09005, allocations: 7.938 kB / 329.7 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.09024, allocations: 23.78 kB / 329.7 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.09043, allocations: 67.45 kB / 329.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.09064, allocations: 43.97 kB / 329.8 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002876/0.09093, allocations: 258.7 kB / 330.1 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.09112, allocations: 95.23 kB / 330.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.09129, allocations: 99.62 kB / 330.3 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.09145, allocations: 107.5 kB / 330.4 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.214e-05/0.09149, allocations: 12 kB / 330.4 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.057e-05/0.09153, allocations: 16 kB / 330.4 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.22e-05/0.09158, allocations: 39.84 kB / 330.5 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.09171, allocations: 127.3 kB / 330.6 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.09193, allocations: 255.4 kB / 330.8 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.09194, allocations: 0 / 330.8 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.09195, allocations: 0 / 330.8 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.09196, allocations: 0 / 330.8 MB, free: 0.6172 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006855/0.09265, allocations: 0.5185 MB / 331.3 MB, free: 48 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.0927, allocations: 12.03 kB / 331.4 MB, free: 36 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.752e-05/0.09277, allocations: 54.72 kB / 331.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.685e-05/0.09283, allocations: 32.66 kB / 331.4 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002439/0.09308, allocations: 244.5 kB / 331.7 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.09311, allocations: 12.81 kB / 331.7 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.376e-05/0.09316, allocations: 32.27 kB / 331.7 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003462/0.09351, allocations: 195.4 kB / 331.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.09354, allocations: 0 / 331.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.09356, allocations: 12 kB / 331.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.09358, allocations: 7.984 kB / 331.9 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.09384, allocations: 137.7 kB / 332.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008924/0.09475, allocations: 0.6229 MB / 332.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002821/0.09504, allocations: 186.3 kB / 332.9 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.09521, allocations: 104.8 kB / 333 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.09524, allocations: 4 kB / 333 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.09527, allocations: 34.59 kB / 333 MB, free: 14.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.09528, allocations: 0 / 333 MB, free: 14.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001781/0.09706, allocations: 1.072 MB / 334.1 MB, free: 13.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.09711, allocations: 55.34 kB / 334.1 MB, free: 13.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.09727, allocations: 190.9 kB / 334.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.0973, allocations: 29.7 kB / 334.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.55e-05/0.09738, allocations: 140.7 kB / 334.5 MB, free: 12.65 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.238e-05/0.09746, allocations: 118.3 kB / 334.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.646e-05/0.09754, allocations: 53.7 kB / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.09765, allocations: 330.8 kB / 335 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.09779, allocations: 71.97 kB / 335.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.09796, allocations: 114.3 kB / 335.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.09826, allocations: 196.7 kB / 335.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.09827, allocations: 0 / 335.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004827/0.09875, allocations: 294 kB / 335.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.09878, allocations: 4 kB / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.964e-06/0.09879, allocations: 7.984 kB / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000163/0.09896, allocations: 40.83 kB / 335.7 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.0992, allocations: 55.91 kB / 335.8 MB, free: 11.35 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.1005, allocations: 1.561 MB / 337.3 MB, free: 9.648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.1006, allocations: 8.031 kB / 337.3 MB, free: 9.641 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.1006, allocations: 15.98 kB / 337.3 MB, free: 9.625 MB / 286.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.0001227/0.1008, allocations: 145.8 kB / 337.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.1008, allocations: 19.72 kB / 337.5 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.121e-05/0.1009, allocations: 34.59 kB / 337.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1009, allocations: 4 kB / 337.5 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1009, allocations: 0 / 337.5 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1009, allocations: 3.984 kB / 337.5 MB, free: 9.414 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.1019, allocations: 0.7775 MB / 338.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.1019, allocations: 7.938 kB / 338.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.1022, allocations: 59.91 kB / 338.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001143/0.1023, allocations: 36.92 kB / 338.4 MB, free: 8.453 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.029e-05/0.1023, allocations: 8 kB / 338.4 MB, free: 8.445 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000984/0.1033, allocations: 1.382 MB / 339.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1033, allocations: 0 / 339.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006413/0.104, allocations: 490.4 kB / 340.3 MB, free: 6.422 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.688e-05/0.1041, allocations: 92.83 kB / 340.4 MB, free: 6.312 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.1041, allocations: 8 kB / 340.4 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.1042, allocations: 19.91 kB / 340.4 MB, free: 6.285 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.677e-05/0.1043, allocations: 23.97 kB / 340.4 MB, free: 6.262 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.1043, allocations: 8 kB / 340.4 MB, free: 6.254 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.693e-05/0.1044, allocations: 127.2 kB / 340.6 MB, free: 6.129 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1044, allocations: 0 / 340.6 MB, free: 6.129 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000352/0.1048, allocations: 72 kB / 340.6 MB, free: 6.059 MB / 286.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.000887/0.1057, allocations: 1.017 MB / 341.7 MB, free: 5.004 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005491/0.1062, allocations: 328 kB / 342 MB, free: 4.672 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1063, allocations: 0 / 342 MB, free: 4.672 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003227/0.1066, allocations: 254.7 kB / 342.2 MB, free: 4.41 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.1071, allocations: 35.98 kB / 342.3 MB, free: 4.375 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/0.1102, allocations: 2.836 MB / 345.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.1105, allocations: 0.7561 MB / 345.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.894e-05/0.1106, allocations: 26.27 kB / 345.9 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.1107, allocations: 75.42 kB / 345.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of SimCode: time 3e-07/0.1107, allocations: 0 / 345.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.1373, allocations: 4.891 MB / 350.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/0.1375, allocations: 213.5 kB / 351 MB, free: 11.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/1.943, allocations: 0 / 351 MB, free: 11.38 MB / 302.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","../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