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.001267/0.001267, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00106/0.00106, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 227.4 MB / 246.3 MB, free: 9.066 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 62.41 kB / 306.3 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08411/0.08544, allocations: 50.55 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003542/0.08902, allocations: 2.406 MB / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.09023, allocations: 0.6466 MB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002274/0.09051, allocations: 4 kB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.09067, allocations: 23.78 kB / 360 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001442/0.09082, allocations: 71.45 kB / 360 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.09106, allocations: 47.95 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.0913, allocations: 250.7 kB / 360.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.09146, allocations: 76.72 kB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.09164, allocations: 95.66 kB / 360.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.09178, allocations: 111.5 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.09181, allocations: 16 kB / 360.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.452e-05/0.09188, allocations: 12 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.322e-05/0.09192, allocations: 39.84 kB / 360.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.09203, allocations: 115.3 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.09226, allocations: 235.4 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.09228, allocations: 4 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.09228, allocations: 0 / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.09229, allocations: 0 / 361 MB, free: 10.04 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.0006442/0.09294, allocations: 0.5108 MB / 361.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.09299, allocations: 12.02 kB / 361.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.859e-05/0.09304, allocations: 54.73 kB / 361.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.09321, allocations: 36.64 kB / 361.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.09345, allocations: 237.2 kB / 361.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.09347, allocations: 16.81 kB / 361.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/0.09352, allocations: 28.31 kB / 361.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003361/0.09386, allocations: 210 kB / 362.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.09389, allocations: 7.984 kB / 362.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.09391, allocations: 8 kB / 362.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.09393, allocations: 7.984 kB / 362.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.09416, allocations: 129.6 kB / 362.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008706/0.09504, allocations: 0.7015 MB / 363 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.09529, allocations: 146.5 kB / 363.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.09543, allocations: 80.81 kB / 363.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.09546, allocations: 0 / 363.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.09549, allocations: 38.5 kB / 363.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.042e-06/0.0955, allocations: 0 / 363.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001426/0.09693, allocations: 0.8953 MB / 364.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.09698, allocations: 55.41 kB / 364.2 MB, free: 6.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.09712, allocations: 172.3 kB / 364.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.09715, allocations: 33.7 kB / 364.4 MB, free: 6.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.97e-05/0.09723, allocations: 140.3 kB / 364.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.265e-05/0.09728, allocations: 86.66 kB / 364.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.447e-05/0.09735, allocations: 53.7 kB / 364.7 MB, free: 6.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.749e-05/0.09746, allocations: 326.8 kB / 365 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.09758, allocations: 55.97 kB / 365 MB, free: 5.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.09771, allocations: 96.25 kB / 365.1 MB, free: 5.598 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.09797, allocations: 172.8 kB / 365.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.09798, allocations: 3.984 kB / 365.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003877/0.09837, allocations: 242.1 kB / 365.5 MB, free: 5.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.0984, allocations: 12.12 kB / 365.5 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.09841, allocations: 0 / 365.5 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001533/0.09857, allocations: 40.81 kB / 365.6 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.09877, allocations: 51.91 kB / 365.6 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.0998, allocations: 1.37 MB / 367 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.09992, allocations: 19.92 kB / 367 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.09995, allocations: 4 kB / 367 MB, free: 3.527 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.0001201/0.1001, allocations: 137.8 kB / 367.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.226e-05/0.1001, allocations: 19.72 kB / 367.2 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.683e-05/0.1002, allocations: 37.86 kB / 367.2 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1002, allocations: 7.938 kB / 367.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1002, allocations: 0 / 367.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.1002, allocations: 3.938 kB / 367.2 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008252/0.101, allocations: 0.648 MB / 367.9 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.101, allocations: 0 / 367.9 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.1013, allocations: 43.97 kB / 367.9 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/0.1014, allocations: 36.92 kB / 368 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.1014, allocations: 4 kB / 368 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009468/0.1024, allocations: 1.374 MB / 369.3 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.1024, allocations: 7.969 kB / 369.3 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.1029, allocations: 413.2 kB / 369.7 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.473e-05/0.1029, allocations: 96.95 kB / 369.8 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.103, allocations: 0 / 369.8 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.1031, allocations: 8 kB / 369.8 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/0.1031, allocations: 19.97 kB / 369.9 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.1032, allocations: 12 kB / 369.9 MB, free: 432 kB / 302.1 MB Notification: Performance of sorting global known variables: time 8.409e-05/0.1032, allocations: 129.2 kB / 370 MB, free: 304 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1033, allocations: 0 / 370 MB, free: 304 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003016/0.1036, allocations: 56 kB / 370.1 MB, free: 248 kB / 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.1841/0.2876, allocations: 0.9444 MB / 371 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005871/0.2883, allocations: 285.1 kB / 371.3 MB, free: 19.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.2883, allocations: 2.844 kB / 371.3 MB, free: 19.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002866/0.2886, allocations: 214.7 kB / 371.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.2891, allocations: 42.69 kB / 371.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.292, allocations: 2.622 MB / 374.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.2923, allocations: 0.7501 MB / 374.9 MB, free: 16.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.176e-05/0.2923, allocations: 22.39 kB / 374.9 MB, free: 16.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.257e-05/0.2924, allocations: 66.05 kB / 375 MB, free: 16.78 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2925, allocations: 0 / 375 MB, free: 16.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2546/0.5471, allocations: 4.433 MB / 379.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/0.5473, allocations: 228.6 kB / 379.6 MB, free: 16.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/2.275, allocations: 3.625 kB / 379.7 MB, free: 16.07 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