Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001669/0.001668, allocations: 119.3 kB / 17.74 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00194/0.00194, allocations: 185.3 kB / 20.68 MB, free: 2.293 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 222.9 MB / 246.4 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 178] 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.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 51.92 kB / 357.5 MB, free: 8.844 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08762, allocations: 49.44 MB / 406.9 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003605/0.09126, allocations: 2.349 MB / 409.3 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.09236, allocations: 0.5726 MB / 409.8 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.09256, allocations: 4 kB / 409.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.09274, allocations: 39.59 kB / 409.9 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001888/0.09296, allocations: 67.39 kB / 410 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002543/0.09322, allocations: 59.88 kB / 410 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003748/0.0936, allocations: 266.7 kB / 410.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/0.09382, allocations: 84.56 kB / 410.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.09401, allocations: 91.64 kB / 410.4 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.09419, allocations: 107.5 kB / 410.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.89e-05/0.09424, allocations: 20 kB / 410.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.346e-05/0.09429, allocations: 20 kB / 410.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.68e-05/0.09434, allocations: 47.84 kB / 410.6 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.09447, allocations: 115.5 kB / 410.7 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003166/0.0948, allocations: 250.9 kB / 411 MB, free: 3.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.09481, allocations: 3.938 kB / 411 MB, free: 3.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09481, allocations: 0 / 411 MB, free: 3.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.09483, allocations: 0 / 411 MB, free: 3.262 MB / 334.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.0007448/0.09558, allocations: 0.5027 MB / 411.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.09563, allocations: 12.03 kB / 411.5 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.918e-05/0.0957, allocations: 62.72 kB / 411.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.912e-05/0.09576, allocations: 32.75 kB / 411.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.0961, allocations: 233.4 kB / 411.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.09613, allocations: 12.81 kB / 411.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.879e-05/0.09618, allocations: 28.31 kB / 411.9 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.09655, allocations: 210 kB / 412.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.09658, allocations: 7.938 kB / 412.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.09661, allocations: 16 kB / 412.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.09662, allocations: 4 kB / 412.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.09689, allocations: 125.7 kB / 412.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.09796, allocations: 0.7055 MB / 412.9 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002802/0.09825, allocations: 156.4 kB / 413.1 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.0984, allocations: 68.83 kB / 413.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.09843, allocations: 4 kB / 413.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.09847, allocations: 34.56 kB / 413.2 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.934e-06/0.09848, allocations: 0 / 413.2 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001727/0.1002, allocations: 0.8957 MB / 414.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.1003, allocations: 55.41 kB / 414.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.1005, allocations: 171.2 kB / 414.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.1005, allocations: 33.7 kB / 414.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.1006, allocations: 148.4 kB / 414.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.388e-05/0.1007, allocations: 91.22 kB / 414.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.279e-05/0.1008, allocations: 45.7 kB / 414.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1009, allocations: 326.8 kB / 414.9 MB, free: 15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.1011, allocations: 55.97 kB / 415 MB, free: 14.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.1013, allocations: 100.2 kB / 415.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.1016, allocations: 168.8 kB / 415.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1016, allocations: 0 / 415.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004697/0.102, allocations: 254.1 kB / 415.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.1021, allocations: 8 kB / 415.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1021, allocations: 0 / 415.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000165/0.1022, allocations: 40.77 kB / 415.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.1025, allocations: 47.97 kB / 415.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/0.1038, allocations: 1.489 MB / 417.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.104, allocations: 8 kB / 417.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.104, allocations: 4 kB / 417.1 MB, free: 12.65 MB / 350.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.0001439/0.1041, allocations: 141.8 kB / 417.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.304e-05/0.1042, allocations: 19.86 kB / 417.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.938e-05/0.1043, allocations: 33.8 kB / 417.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.1043, allocations: 4 kB / 417.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1043, allocations: 0 / 417.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1043, allocations: 0 / 417.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.1053, allocations: 0.6571 MB / 418 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.1054, allocations: 0 / 418 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.1056, allocations: 51.91 kB / 418 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001191/0.1057, allocations: 28.84 kB / 418 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.1057, allocations: 7.984 kB / 418 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.107, allocations: 1.497 MB / 419.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.107, allocations: 0 / 419.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005805/0.1076, allocations: 396.6 kB / 419.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.065e-05/0.1077, allocations: 101 kB / 420 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.1077, allocations: 4.062 kB / 420 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.1079, allocations: 15.97 kB / 420 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.1079, allocations: 23.86 kB / 420.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.108, allocations: 4 kB / 420.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001107/0.1081, allocations: 136.8 kB / 420.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1081, allocations: 0 / 420.2 MB, free: 9.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.1084, allocations: 60 kB / 420.3 MB, free: 9.219 MB / 350.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.0009015/0.1093, allocations: 0.9353 MB / 421.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005509/0.1099, allocations: 290.4 kB / 421.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1099, allocations: 0 / 421.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000311/0.1102, allocations: 210.6 kB / 421.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.1106, allocations: 54.94 kB / 421.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.1139, allocations: 2.533 MB / 424.3 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.1143, allocations: 0.752 MB / 425 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.134e-05/0.1144, allocations: 21.94 kB / 425 MB, free: 4.223 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.1145, allocations: 71.41 kB / 425.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1145, allocations: 0 / 425.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1952/0.3097, allocations: 4.723 MB / 429.8 MB, free: 22.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.559/9.868, allocations: 3.672 kB / 429.8 MB, free: 22.12 MB / 350.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.171392448013648]