Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_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.001127/0.001127, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001101/0.001101, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000963/0.0009631, allocations: 51.83 kB / 300.1 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08345/0.08443, allocations: 49.44 MB / 349.5 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003596/0.08806, allocations: 2.387 MB / 351.9 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009639/0.08905, allocations: 0.5804 MB / 352.5 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.08923, allocations: 4 kB / 352.5 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.08943, allocations: 23.78 kB / 352.5 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.08962, allocations: 59.48 kB / 352.6 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002131/0.08984, allocations: 55.88 kB / 352.6 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.09014, allocations: 274.7 kB / 352.9 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.09035, allocations: 87.3 kB / 353 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001732/0.09053, allocations: 103.5 kB / 353.1 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.0907, allocations: 99.55 kB / 353.2 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.076e-05/0.09075, allocations: 16 kB / 353.2 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.255e-05/0.0908, allocations: 16 kB / 353.2 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.972e-05/0.09086, allocations: 47.77 kB / 353.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.091, allocations: 127.3 kB / 353.4 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.09126, allocations: 251.2 kB / 353.6 MB, free: 396 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.09127, allocations: 0 / 353.6 MB, free: 396 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.09128, allocations: 0 / 353.6 MB, free: 396 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.423e-06/0.09129, allocations: 0 / 353.6 MB, free: 396 kB / 286.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.0008649/0.09217, allocations: 0.5224 MB / 354.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.09223, allocations: 8.031 kB / 354.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.093e-05/0.09231, allocations: 58.73 kB / 354.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.443e-05/0.09238, allocations: 24.66 kB / 354.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003343/0.09272, allocations: 244.6 kB / 354.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.09275, allocations: 16.81 kB / 354.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.62e-05/0.0928, allocations: 28.28 kB / 354.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/0.09318, allocations: 191.4 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.09321, allocations: 7.984 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.09324, allocations: 4 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.09325, allocations: 8 kB / 354.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002753/0.09353, allocations: 137.7 kB / 354.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009408/0.09448, allocations: 0.6346 MB / 355.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002842/0.09478, allocations: 174.5 kB / 355.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.09496, allocations: 100.8 kB / 355.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.09498, allocations: 0 / 355.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.09501, allocations: 38.55 kB / 355.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.032e-06/0.09502, allocations: 4 kB / 355.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001824/0.09684, allocations: 1.068 MB / 356.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.0969, allocations: 63.34 kB / 356.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.09708, allocations: 184 kB / 357.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.0971, allocations: 29.7 kB / 357.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.035e-05/0.0972, allocations: 136.7 kB / 357.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.63e-05/0.09728, allocations: 114.3 kB / 357.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.497e-05/0.09736, allocations: 49.69 kB / 357.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.0975, allocations: 334.8 kB / 357.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.09766, allocations: 71.91 kB / 357.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.09783, allocations: 115.2 kB / 357.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/0.09814, allocations: 181.4 kB / 358.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.09815, allocations: 7.938 kB / 358.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004865/0.09864, allocations: 306.1 kB / 358.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.09866, allocations: 4 kB / 358.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.09867, allocations: 0 / 358.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001672/0.09885, allocations: 44.83 kB / 358.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.09909, allocations: 59.91 kB / 358.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.1004, allocations: 1.565 MB / 360.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.1005, allocations: 11.94 kB / 360.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.1006, allocations: 8 kB / 360.1 MB, free: 9.418 MB / 302.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.0001248/0.1007, allocations: 146.1 kB / 360.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.1007, allocations: 19.81 kB / 360.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.551e-05/0.1008, allocations: 34.58 kB / 360.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.1008, allocations: 4 kB / 360.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1008, allocations: 0 / 360.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1008, allocations: 0 / 360.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.1019, allocations: 0.7744 MB / 361.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.1019, allocations: 7.938 kB / 361.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.1022, allocations: 67.98 kB / 361.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001241/0.1023, allocations: 28.84 kB / 361.2 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.1023, allocations: 8 kB / 361.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.1034, allocations: 1.378 MB / 362.6 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1034, allocations: 4.172 kB / 362.6 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006628/0.1041, allocations: 490.3 kB / 363.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.697e-05/0.1042, allocations: 101 kB / 363.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.897e-05/0.1042, allocations: 8 kB / 363.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.1043, allocations: 11.94 kB / 363.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.832e-05/0.1044, allocations: 19.91 kB / 363.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.1044, allocations: 12 kB / 363.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001008/0.1045, allocations: 135.5 kB / 363.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1045, allocations: 0 / 363.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003584/0.1049, allocations: 68 kB / 363.4 MB, free: 5.852 MB / 302.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.0009608/0.1059, allocations: 1.016 MB / 364.4 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005571/0.1064, allocations: 335.3 kB / 364.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.1064, allocations: 0 / 364.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003333/0.1068, allocations: 251.3 kB / 365 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.1072, allocations: 37.97 kB / 365 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.1106, allocations: 2.831 MB / 367.9 MB, free: 1.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.1109, allocations: 0.7522 MB / 368.6 MB, free: 460 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.043e-05/0.111, allocations: 26.22 kB / 368.6 MB, free: 432 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.1112, allocations: 87.34 kB / 368.7 MB, free: 344 kB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1112, allocations: 0 / 368.7 MB, free: 344 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1478/0.259, allocations: 4.881 MB / 373.6 MB, free: 24.53 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001469/0.2592, allocations: 215.6 kB / 373.8 MB, free: 24.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.024, allocations: 0 / 373.8 MB, free: 24.28 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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),f,fixed.flange.phi,fixed.flange.tau,fixed.phi0,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.f,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