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.001214/0.001214, allocations: 123.9 kB / 17.78 MB, free: 5.121 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.001245/0.001245, allocations: 189.2 kB / 20.73 MB, free: 2.184 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.353/1.353, allocations: 225.6 MB / 249.1 MB, free: 3.645 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.001475/0.001475, allocations: 51.91 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09119/0.09267, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003505/0.09617, allocations: 2.353 MB / 420.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009464/0.09712, allocations: 0.592 MB / 420.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.09722, allocations: 4 kB / 420.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.09736, allocations: 35.59 kB / 420.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000137/0.0975, allocations: 71.41 kB / 420.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001873/0.09769, allocations: 55.86 kB / 420.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003089/0.09799, allocations: 254.8 kB / 421.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.09817, allocations: 60.36 kB / 421.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.09832, allocations: 111.6 kB / 421.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.09846, allocations: 103.5 kB / 421.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.156e-05/0.09851, allocations: 20 kB / 421.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.498e-05/0.09854, allocations: 20 kB / 421.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.891e-05/0.09859, allocations: 47.78 kB / 421.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.0987, allocations: 115.4 kB / 421.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003033/0.099, allocations: 251 kB / 421.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.09901, allocations: 0 / 421.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09901, allocations: 0 / 421.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.09902, allocations: 0 / 421.8 MB, free: 8.535 MB / 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.0007334/0.09975, allocations: 0.5143 MB / 422.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.09979, allocations: 16.02 kB / 422.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.106e-05/0.09985, allocations: 50.73 kB / 422.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.0999, allocations: 36.69 kB / 422.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.1002, allocations: 245.4 kB / 422.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.1003, allocations: 12.81 kB / 422.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.863e-05/0.1003, allocations: 24.38 kB / 422.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/0.1007, allocations: 217.9 kB / 423 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.1007, allocations: 3.953 kB / 423 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.1007, allocations: 12 kB / 423 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1007, allocations: 4 kB / 423 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.101, allocations: 121.7 kB / 423.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.102, allocations: 0.7094 MB / 423.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.1022, allocations: 134.5 kB / 423.9 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.1024, allocations: 64.83 kB / 424 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.1024, allocations: 0 / 424 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.1024, allocations: 34.56 kB / 424 MB, free: 6.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.052e-06/0.1024, allocations: 4 kB / 424 MB, free: 6.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001551/0.104, allocations: 0.8836 MB / 424.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.104, allocations: 59.41 kB / 425 MB, free: 5.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.1042, allocations: 179.2 kB / 425.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.1042, allocations: 25.7 kB / 425.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.939e-05/0.1043, allocations: 144.4 kB / 425.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.894e-05/0.1044, allocations: 91.22 kB / 425.4 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.011e-05/0.1044, allocations: 45.7 kB / 425.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1046, allocations: 326.8 kB / 425.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.1047, allocations: 59.97 kB / 425.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.1048, allocations: 104.2 kB / 425.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/0.1051, allocations: 172.1 kB / 426.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1051, allocations: 0 / 426.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004286/0.1055, allocations: 246.1 kB / 426.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.1056, allocations: 11.98 kB / 426.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.1056, allocations: 0 / 426.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001481/0.1057, allocations: 36.77 kB / 426.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.1059, allocations: 52.09 kB / 426.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.1072, allocations: 1.488 MB / 427.9 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.1073, allocations: 11.94 kB / 427.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.1074, allocations: 11.94 kB / 427.9 MB, free: 1.922 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.0001326/0.1075, allocations: 133.8 kB / 428.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.406e-05/0.1075, allocations: 19.86 kB / 428.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.135e-05/0.1076, allocations: 29.86 kB / 428.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.1076, allocations: 11.94 kB / 428.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.1076, allocations: 4.062 kB / 428.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1076, allocations: 0 / 428.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009215/0.1085, allocations: 0.6441 MB / 428.8 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1085, allocations: 0 / 428.8 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002091/0.1087, allocations: 44.03 kB / 428.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000114/0.1089, allocations: 40.83 kB / 428.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.1089, allocations: 4 kB / 428.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.1102, allocations: 1.489 MB / 430.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1102, allocations: 0 / 430.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005855/0.1108, allocations: 407.2 kB / 430.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.148e-05/0.1109, allocations: 92.97 kB / 430.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.1109, allocations: 8 kB / 430.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.111, allocations: 8.031 kB / 430.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.1111, allocations: 23.86 kB / 430.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.1111, allocations: 4 kB / 430.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000123/0.1112, allocations: 140.8 kB / 431 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1112, allocations: 0 / 431 MB, free: 14.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003189/0.1115, allocations: 56 kB / 431.1 MB, free: 14.51 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.0009354/0.1125, allocations: 0.9465 MB / 432 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005416/0.113, allocations: 278.4 kB / 432.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.113, allocations: 0 / 432.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003072/0.1133, allocations: 211 kB / 432.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.1137, allocations: 50 kB / 432.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003168/0.1169, allocations: 2.536 MB / 435.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.1173, allocations: 0.752 MB / 435.8 MB, free: 9.539 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.448e-05/0.1173, allocations: 21.94 kB / 435.9 MB, free: 9.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1174, allocations: 71.36 kB / 435.9 MB, free: 9.453 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1174, allocations: 0 / 435.9 MB, free: 9.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03414/0.1516, allocations: 4.78 MB / 440.7 MB, free: 4.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.68/9.832, allocations: 14.55 kB / 440.7 MB, free: 4.801 MB / 366.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.326525920070708]