Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.001317/0.001317, allocations: 120.8 kB / 17.79 MB, free: 5.285 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.001325/0.001325, allocations: 186.9 kB / 20.73 MB, free: 2.355 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.369/1.369, allocations: 225.6 MB / 249.1 MB, free: 3.625 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.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 47.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09748, allocations: 52.15 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003748/0.1012, allocations: 2.361 MB / 420.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.1023, allocations: 0.5881 MB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.1024, allocations: 4 kB / 420.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.1026, allocations: 35.59 kB / 420.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.1027, allocations: 79.33 kB / 420.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002/0.1029, allocations: 55.88 kB / 420.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003086/0.1032, allocations: 274.8 kB / 421.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.1034, allocations: 70.78 kB / 421.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.1036, allocations: 111.6 kB / 421.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.1037, allocations: 115.4 kB / 421.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.1038, allocations: 20 kB / 421.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.594e-05/0.1038, allocations: 20 kB / 421.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.098e-05/0.1039, allocations: 51.83 kB / 421.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.104, allocations: 119.4 kB / 421.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003293/0.1043, allocations: 278.7 kB / 421.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1043, allocations: 4 kB / 421.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1043, allocations: 0 / 421.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1043, allocations: 0 / 421.9 MB, free: 8.449 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000805/0.1051, allocations: 0.5183 MB / 422.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1052, allocations: 11.89 kB / 422.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.231e-05/0.1052, allocations: 58.73 kB / 422.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.989e-05/0.1053, allocations: 28.75 kB / 422.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003598/0.1056, allocations: 249.3 kB / 422.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.1057, allocations: 16.81 kB / 422.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.1057, allocations: 24.33 kB / 422.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/0.1061, allocations: 195.4 kB / 423 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.1061, allocations: 3.984 kB / 423 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.199e-05/0.1061, allocations: 12 kB / 423 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.1061, allocations: 4 kB / 423 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000276/0.1064, allocations: 137.7 kB / 423.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009503/0.1074, allocations: 0.6309 MB / 423.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003032/0.1077, allocations: 168.9 kB / 424 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.1078, allocations: 87.22 kB / 424.1 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.1079, allocations: 11.98 kB / 424.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.1079, allocations: 34.56 kB / 424.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 3.667e-06/0.1079, allocations: 3.984 kB / 424.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001952/0.1098, allocations: 1.072 MB / 425.2 MB, free: 4.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.1099, allocations: 55.34 kB / 425.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.1101, allocations: 183.1 kB / 425.4 MB, free: 4.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.1101, allocations: 33.64 kB / 425.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.845e-05/0.1102, allocations: 144.8 kB / 425.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.336e-05/0.1103, allocations: 115 kB / 425.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.1104, allocations: 61.69 kB / 425.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1105, allocations: 326.8 kB / 426.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.1107, allocations: 71.95 kB / 426.2 MB, free: 3.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.1108, allocations: 114.9 kB / 426.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.1112, allocations: 185.4 kB / 426.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-06/0.1112, allocations: 0 / 426.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005296/0.1117, allocations: 302.2 kB / 426.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.1117, allocations: 4 kB / 426.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1117, allocations: 0 / 426.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001842/0.1119, allocations: 44.83 kB / 426.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.1122, allocations: 63.97 kB / 426.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001699/0.1139, allocations: 1.74 MB / 428.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.114, allocations: 8.031 kB / 428.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.114, allocations: 11.98 kB / 428.6 MB, free: 1.297 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001495/0.1142, allocations: 141.8 kB / 428.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.701e-05/0.1142, allocations: 23.8 kB / 428.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.909e-05/0.1143, allocations: 26.66 kB / 428.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1143, allocations: 8.062 kB / 428.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1143, allocations: 0 / 428.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1143, allocations: 7.984 kB / 428.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.1154, allocations: 0.7777 MB / 429.6 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1154, allocations: 3.938 kB / 429.6 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.1157, allocations: 59.91 kB / 429.7 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/0.1158, allocations: 32.83 kB / 429.7 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.1158, allocations: 12 kB / 429.7 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/0.1171, allocations: 1.493 MB / 431.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1171, allocations: 0 / 431.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000717/0.1179, allocations: 490.6 kB / 431.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.337e-05/0.1179, allocations: 97.02 kB / 431.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.118, allocations: 11.98 kB / 431.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.1181, allocations: 8 kB / 431.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.948e-05/0.1182, allocations: 27.91 kB / 431.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.1182, allocations: 8 kB / 431.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001252/0.1183, allocations: 131.2 kB / 431.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1183, allocations: 0 / 431.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003848/0.1187, allocations: 72 kB / 432 MB, free: 13.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.001113/0.1198, allocations: 1.024 MB / 433 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006373/0.1204, allocations: 327.6 kB / 433.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1204, allocations: 0 / 433.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003481/0.1208, allocations: 238.5 kB / 433.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.1212, allocations: 35.92 kB / 433.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003578/0.1248, allocations: 2.749 MB / 436.4 MB, free: 9.059 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.1252, allocations: 0.7563 MB / 437.1 MB, free: 8.277 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.825e-05/0.1253, allocations: 26.28 kB / 437.2 MB, free: 8.254 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.1254, allocations: 71.41 kB / 437.2 MB, free: 8.184 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1254, allocations: 0 / 437.2 MB, free: 8.184 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0332/0.1586, allocations: 5.302 MB / 442.5 MB, free: 2.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.805/9.963, allocations: 10.88 kB / 442.5 MB, free: 2.988 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.400304271839559]