Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001567/0.001567, allocations: 119.8 kB / 18.45 MB, free: 4.457 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.001621/0.001621, allocations: 190.9 kB / 21.39 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 207.6 MB / 231.8 MB, free: 3.984 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 47.92 kB / 342.2 MB, free: 10.01 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.09479, allocations: 49.12 MB / 391.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.004013/0.0988, allocations: 2.356 MB / 393.7 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.09999, allocations: 0.6317 MB / 394.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.1001, allocations: 7.938 kB / 394.4 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001652/0.1003, allocations: 31.66 kB / 394.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.1005, allocations: 79.33 kB / 394.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.1007, allocations: 55.86 kB / 394.5 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.101, allocations: 254.8 kB / 394.8 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.1012, allocations: 68.34 kB / 394.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.1014, allocations: 95.66 kB / 394.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.1015, allocations: 111.4 kB / 395 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.652e-05/0.1016, allocations: 20 kB / 395.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.788e-05/0.1016, allocations: 20 kB / 395.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.892e-05/0.1016, allocations: 43.84 kB / 395.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.1018, allocations: 115.4 kB / 395.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003699/0.1021, allocations: 247 kB / 395.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1021, allocations: 0 / 395.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1021, allocations: 0 / 395.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1021, allocations: 4 kB / 395.5 MB, free: 4.586 MB / 318.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.00082/0.103, allocations: 0.5143 MB / 396 MB, free: 4.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.103, allocations: 12.03 kB / 396 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.482e-05/0.1031, allocations: 50.73 kB / 396.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.352e-05/0.1031, allocations: 28.78 kB / 396.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003803/0.1035, allocations: 241.6 kB / 396.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.1035, allocations: 12.81 kB / 396.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.596e-05/0.1036, allocations: 32.31 kB / 396.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.104, allocations: 213.9 kB / 396.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.104, allocations: 3.953 kB / 396.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.104, allocations: 15.98 kB / 396.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.104, allocations: 7.984 kB / 396.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002688/0.1043, allocations: 125.7 kB / 396.7 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.1054, allocations: 0.6978 MB / 397.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.1057, allocations: 142.5 kB / 397.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.1058, allocations: 64.83 kB / 397.6 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.1058, allocations: 0 / 397.6 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.1058, allocations: 38.56 kB / 397.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.082e-06/0.1058, allocations: 4 kB / 397.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001674/0.1075, allocations: 0.8944 MB / 398.6 MB, free: 1.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.1076, allocations: 55.41 kB / 398.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.1078, allocations: 174.6 kB / 398.8 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.1078, allocations: 33.7 kB / 398.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.1079, allocations: 144.3 kB / 399 MB, free: 0.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.011e-05/0.108, allocations: 87.28 kB / 399 MB, free: 0.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.697e-05/0.108, allocations: 45.7 kB / 399.1 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1082, allocations: 326.8 kB / 399.4 MB, free: 336 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.1083, allocations: 63.97 kB / 399.5 MB, free: 272 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.1085, allocations: 96.25 kB / 399.6 MB, free: 160 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003128/0.1088, allocations: 168.2 kB / 399.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1088, allocations: 0 / 399.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005022/0.1093, allocations: 250.1 kB / 400 MB, free: 15.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.1093, allocations: 11.91 kB / 400 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1093, allocations: 0 / 400 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002161/0.1096, allocations: 36.95 kB / 400 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.1098, allocations: 55.91 kB / 400.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.1112, allocations: 1.485 MB / 401.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.1113, allocations: 11.98 kB / 401.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.1113, allocations: 12 kB / 401.6 MB, free: 13.97 MB / 334.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.0001493/0.1115, allocations: 133.9 kB / 401.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.419e-05/0.1115, allocations: 19.86 kB / 401.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.043e-05/0.1116, allocations: 37.86 kB / 401.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1116, allocations: 7.938 kB / 401.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1116, allocations: 0 / 401.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.1116, allocations: 0 / 401.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.1126, allocations: 0.6442 MB / 402.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1126, allocations: 4.062 kB / 402.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/0.1129, allocations: 47.84 kB / 402.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001177/0.113, allocations: 36.84 kB / 402.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.113, allocations: 11.98 kB / 402.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.1143, allocations: 1.481 MB / 404 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1143, allocations: 0 / 404 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006119/0.1149, allocations: 414 kB / 404.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.049e-05/0.115, allocations: 92.97 kB / 404.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.115, allocations: 8 kB / 404.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.1152, allocations: 8 kB / 404.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.351e-05/0.1152, allocations: 19.95 kB / 404.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.1152, allocations: 8 kB / 404.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.1153, allocations: 144.7 kB / 404.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1153, allocations: 0 / 404.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000321/0.1157, allocations: 56 kB / 404.7 MB, free: 10.54 MB / 334.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.0009739/0.1166, allocations: 0.926 MB / 405.7 MB, free: 9.582 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005929/0.1172, allocations: 283 kB / 405.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1172, allocations: 4 kB / 405.9 MB, free: 9.289 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000323/0.1176, allocations: 207.2 kB / 406.1 MB, free: 9.074 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.118, allocations: 51.78 kB / 406.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00339/0.1214, allocations: 2.53 MB / 408.7 MB, free: 6.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.1218, allocations: 0.752 MB / 409.5 MB, free: 5.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.27e-05/0.1219, allocations: 17.94 kB / 409.5 MB, free: 5.574 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.122, allocations: 75.41 kB / 409.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.122, allocations: 3.938 kB / 409.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03362/0.1556, allocations: 4.773 MB / 414.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.573/9.729, allocations: 11.84 kB / 414.4 MB, free: 0.6523 MB / 334.1 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.138180720154196]