Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001215/0.001215, allocations: 104 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001216/0.001216, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 64.17 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1152, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003935/0.1192, allocations: 2.365 MB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.1205, allocations: 0.6504 MB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002149/0.1208, allocations: 4 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.121, allocations: 39.59 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.1212, allocations: 63.41 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.1215, allocations: 63.86 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.1218, allocations: 258.7 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001833/0.122, allocations: 96.28 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.1222, allocations: 103.6 kB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.1224, allocations: 107.4 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.518e-05/0.1225, allocations: 20 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.402e-05/0.1225, allocations: 24 kB / 361.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.82e-05/0.1226, allocations: 43.84 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.1227, allocations: 123.4 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.123, allocations: 243.4 kB / 361.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.123, allocations: 4 kB / 361.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.123, allocations: 3.938 kB / 361.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.123, allocations: 0 / 361.8 MB, free: 9.781 MB / 302.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.0006997/0.1237, allocations: 0.5068 MB / 362.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.1238, allocations: 15.95 kB / 362.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.295e-05/0.1239, allocations: 54.73 kB / 362.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.124, allocations: 32.64 kB / 362.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002941/0.1243, allocations: 250.1 kB / 362.6 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.1244, allocations: 12.81 kB / 362.6 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.601e-05/0.1244, allocations: 24.38 kB / 362.7 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003664/0.1248, allocations: 210 kB / 362.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.1248, allocations: 3.938 kB / 362.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.1249, allocations: 15.98 kB / 362.9 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.1249, allocations: 4 kB / 362.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002769/0.1251, allocations: 125.7 kB / 363 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.1263, allocations: 0.7093 MB / 363.7 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.1266, allocations: 150.5 kB / 363.9 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.1267, allocations: 68.83 kB / 363.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.1267, allocations: 0 / 363.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.1268, allocations: 42.56 kB / 364 MB, free: 7.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.122e-06/0.1268, allocations: 0 / 364 MB, free: 7.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001592/0.1284, allocations: 0.8885 MB / 364.9 MB, free: 6.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.1284, allocations: 51.41 kB / 364.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.1286, allocations: 184.3 kB / 365.1 MB, free: 6.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.1286, allocations: 25.7 kB / 365.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.74e-05/0.1287, allocations: 144.3 kB / 365.3 MB, free: 5.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.654e-05/0.1288, allocations: 90.64 kB / 365.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.58e-05/0.1289, allocations: 49.7 kB / 365.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.129, allocations: 330.8 kB / 365.7 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.1292, allocations: 55.97 kB / 365.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.1293, allocations: 104.2 kB / 365.9 MB, free: 5.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/0.1296, allocations: 168.8 kB / 366 MB, free: 5.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1296, allocations: 4 kB / 366 MB, free: 5.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005317/0.1301, allocations: 246 kB / 366.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.1302, allocations: 10.75 kB / 366.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.1302, allocations: 4 kB / 366.3 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001753/0.1304, allocations: 32.95 kB / 366.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002067/0.1306, allocations: 59.91 kB / 366.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.1319, allocations: 1.485 MB / 367.9 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.132, allocations: 8 kB / 367.9 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.132, allocations: 4 kB / 367.9 MB, free: 3.16 MB / 302.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.0001324/0.1321, allocations: 141.7 kB / 368 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.1322, allocations: 19.78 kB / 368 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.039e-05/0.1323, allocations: 33.86 kB / 368.1 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1323, allocations: 7.938 kB / 368.1 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1323, allocations: 0 / 368.1 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1323, allocations: 3.938 kB / 368.1 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009206/0.1332, allocations: 0.6441 MB / 368.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1332, allocations: 0 / 368.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.1335, allocations: 47.91 kB / 368.8 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001208/0.1336, allocations: 36.83 kB / 368.8 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.1336, allocations: 4 kB / 368.8 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.1348, allocations: 1.485 MB / 370.3 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.1348, allocations: 4.031 kB / 370.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005454/0.1353, allocations: 406 kB / 370.7 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2121/0.3474, allocations: 86.94 kB / 370.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.277e-05/0.3476, allocations: 5.5 kB / 370.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.3477, allocations: 8.047 kB / 370.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.996e-05/0.3478, allocations: 21.28 kB / 370.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.3479, allocations: 5.578 kB / 370.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.348, allocations: 129.5 kB / 370.9 MB, free: 19.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.348, allocations: 0 / 370.9 MB, free: 19.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004853/0.3485, allocations: 57.28 kB / 371 MB, free: 19.82 MB / 302.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.000947/0.3495, allocations: 0.9375 MB / 371.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006308/0.3501, allocations: 307.8 kB / 372.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3501, allocations: 0 / 372.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003126/0.3505, allocations: 214.2 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005179/0.351, allocations: 42.97 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/0.3543, allocations: 2.534 MB / 375 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.3547, allocations: 0.7473 MB / 375.8 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.3548, allocations: 20.84 kB / 375.8 MB, free: 16.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.3549, allocations: 65.83 kB / 375.9 MB, free: 16.7 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3549, allocations: 3.938 kB / 375.9 MB, free: 16.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03631/0.3912, allocations: 4.656 MB / 380.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.67, allocations: 11.55 kB / 380.5 MB, free: 16.11 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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),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.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.continuous,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.tau,torque.useSupport