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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.4 MB / 254.7 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 63.91 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.09926, allocations: 53.38 MB / 427.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003668/0.1029, allocations: 2.371 MB / 429.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.104, allocations: 0.6466 MB / 430.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.1041, allocations: 7.938 kB / 430.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.1043, allocations: 31.66 kB / 430.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.1044, allocations: 79.33 kB / 430.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002374/0.1047, allocations: 67.86 kB / 430.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002962/0.105, allocations: 258.8 kB / 430.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.1051, allocations: 56.38 kB / 430.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001987/0.1053, allocations: 115.6 kB / 430.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.1055, allocations: 103.5 kB / 430.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.1055, allocations: 23.98 kB / 430.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.192e-05/0.1056, allocations: 20 kB / 430.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.357e-05/0.1056, allocations: 51.72 kB / 430.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.1057, allocations: 119.4 kB / 431 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.106, allocations: 262.8 kB / 431.3 MB, free: 432 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.106, allocations: 0 / 431.3 MB, free: 432 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.106, allocations: 0 / 431.3 MB, free: 432 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.106, allocations: 0 / 431.3 MB, free: 432 kB / 350.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.0007491/0.1068, allocations: 0.5144 MB / 431.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.1068, allocations: 8.031 kB / 431.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.818e-05/0.1068, allocations: 4.625 kB / 431.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.451e-05/0.1069, allocations: 62.67 kB / 431.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.1071, allocations: 36.78 kB / 431.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003178/0.1074, allocations: 248.7 kB / 432.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.1074, allocations: 16.81 kB / 432.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.091e-05/0.1074, allocations: 20.38 kB / 432.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003708/0.1078, allocations: 209.8 kB / 432.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.1078, allocations: 11.95 kB / 432.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.1078, allocations: 11.94 kB / 432.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1078, allocations: 4 kB / 432.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002651/0.1081, allocations: 125.6 kB / 432.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.1091, allocations: 0.7095 MB / 433.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002692/0.1094, allocations: 138.5 kB / 433.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.1095, allocations: 68.77 kB / 433.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.1096, allocations: 4 kB / 433.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.1096, allocations: 34.55 kB / 433.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.273e-06/0.1096, allocations: 0 / 433.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.001658/0.1112, allocations: 0.8898 MB / 434.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.1113, allocations: 55.41 kB / 434.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.1115, allocations: 172 kB / 434.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.1115, allocations: 33.7 kB / 434.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.676e-05/0.1116, allocations: 152.3 kB / 434.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.447e-05/0.1117, allocations: 87.22 kB / 434.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.547e-05/0.1118, allocations: 53.69 kB / 434.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1119, allocations: 330.8 kB / 435.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.112, allocations: 55.97 kB / 435.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.1122, allocations: 104.2 kB / 435.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000299/0.1125, allocations: 168.1 kB / 435.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1125, allocations: 0 / 435.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004625/0.113, allocations: 254.1 kB / 435.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.113, allocations: 9.875 kB / 435.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.113, allocations: 0 / 435.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001584/0.1131, allocations: 36.83 kB / 435.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/0.1134, allocations: 47.92 kB / 435.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.1147, allocations: 1.481 MB / 437.4 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.1148, allocations: 15.92 kB / 437.4 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.1149, allocations: 12.06 kB / 437.4 MB, free: 9.773 MB / 366.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.0001251/0.115, allocations: 137.8 kB / 437.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.585e-05/0.115, allocations: 19.86 kB / 437.5 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.633e-05/0.1151, allocations: 25.81 kB / 437.6 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1151, allocations: 4 kB / 437.6 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1151, allocations: 144 / 437.6 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.1151, allocations: 15.91 kB / 437.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009615/0.1161, allocations: 0.6442 MB / 438.2 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.1161, allocations: 0 / 438.2 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.1163, allocations: 51.91 kB / 438.3 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001207/0.1164, allocations: 28.84 kB / 438.3 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.1164, allocations: 8.062 kB / 438.3 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/0.1177, allocations: 1.488 MB / 439.8 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1177, allocations: 32 / 439.8 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006104/0.1183, allocations: 397.6 kB / 440.2 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.854e-05/0.1184, allocations: 105 kB / 440.3 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.1184, allocations: 4 kB / 440.3 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.1185, allocations: 8 kB / 440.3 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.122e-05/0.1186, allocations: 23.91 kB / 440.3 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.1186, allocations: 4 kB / 440.3 MB, free: 6.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001119/0.1187, allocations: 124.1 kB / 440.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1187, allocations: 0 / 440.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003207/0.119, allocations: 60 kB / 440.5 MB, free: 6.375 MB / 366.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.000962/0.12, allocations: 0.9456 MB / 441.5 MB, free: 5.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005679/0.1206, allocations: 282.5 kB / 441.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1206, allocations: 0 / 441.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003299/0.1209, allocations: 206.6 kB / 441.9 MB, free: 4.891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.1213, allocations: 48.61 kB / 442 MB, free: 4.844 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.1246, allocations: 2.533 MB / 444.5 MB, free: 2.188 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.125, allocations: 0.7482 MB / 445.3 MB, free: 1.414 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.918e-05/0.125, allocations: 17.95 kB / 445.3 MB, free: 1.398 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.1251, allocations: 75.34 kB / 445.4 MB, free: 1.324 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1251, allocations: 0 / 445.4 MB, free: 1.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2003/0.3254, allocations: 4.849 MB / 450.2 MB, free: 23.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.864/10.19, allocations: 8.016 kB / 450.2 MB, free: 23.91 MB / 366.1 MB " [Timeout remaining time 650] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 12.654348598967772]