Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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.001505/0.001505, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.00178/0.00178, allocations: 189 kB / 21.43 MB, free: 1.641 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.392/1.392, allocations: 225.6 MB / 249.8 MB, free: 3.516 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.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 43.94 kB / 366.3 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09554/0.09696, allocations: 52.16 MB / 418.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003502/0.1005, allocations: 2.255 MB / 420.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004088/0.1009, allocations: 203.2 kB / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.292e-05/0.101, allocations: 4 kB / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.589e-05/0.1011, allocations: 35.64 kB / 421 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.1012, allocations: 67.42 kB / 421 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001676/0.1014, allocations: 51.92 kB / 421.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002516/0.1016, allocations: 235 kB / 421.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.1018, allocations: 82.59 kB / 421.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.1019, allocations: 91.66 kB / 421.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.1021, allocations: 103.5 kB / 421.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.1021, allocations: 20 kB / 421.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.312e-05/0.1021, allocations: 20 kB / 421.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.745e-05/0.1022, allocations: 55.83 kB / 421.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.1023, allocations: 111.5 kB / 421.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.1026, allocations: 262.9 kB / 422 MB, free: 9.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1026, allocations: 0 / 422 MB, free: 9.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1026, allocations: 0 / 422 MB, free: 9.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.1026, allocations: 0 / 422 MB, free: 9.043 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007629/0.1034, allocations: 0.5107 MB / 422.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.1034, allocations: 8.031 kB / 422.6 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.109e-05/0.1034, allocations: 12.75 kB / 422.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.487e-05/0.1035, allocations: 58.72 kB / 422.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.894e-05/0.1035, allocations: 24.8 kB / 422.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.1038, allocations: 218.2 kB / 422.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.1038, allocations: 16.94 kB / 422.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.342e-05/0.1038, allocations: 24.38 kB / 422.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003775/0.1042, allocations: 236.6 kB / 423.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1042, allocations: 8 kB / 423.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.1042, allocations: 7.984 kB / 423.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.1043, allocations: 8 kB / 423.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002458/0.1045, allocations: 139.7 kB / 423.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.1056, allocations: 0.8523 MB / 424.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.1059, allocations: 163.7 kB / 424.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.446e-05/0.106, allocations: 50.56 kB / 424.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.106, allocations: 11.88 kB / 424.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.106, allocations: 38.56 kB / 424.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.342e-06/0.106, allocations: 4 kB / 424.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003633/0.1064, allocations: 170.2 kB / 424.6 MB, free: 6.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.1064, allocations: 102.8 kB / 424.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.1066, allocations: 198.2 kB / 424.9 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.1067, allocations: 29.7 kB / 424.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.1068, allocations: 164.1 kB / 425.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.325e-05/0.1068, allocations: 67.42 kB / 425.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.329e-05/0.1069, allocations: 57.94 kB / 425.2 MB, free: 5.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.1071, allocations: 334.8 kB / 425.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.524e-05/0.1071, allocations: 44.55 kB / 425.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.1073, allocations: 150.8 kB / 425.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.1076, allocations: 221.6 kB / 425.9 MB, free: 4.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1076, allocations: 4 kB / 425.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003696/0.108, allocations: 245.2 kB / 426.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.108, allocations: 14.28 kB / 426.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.108, allocations: 4.438 kB / 426.2 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.108, allocations: 8 kB / 426.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.1082, allocations: 63.91 kB / 426.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.1082, allocations: 7.938 kB / 426.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.1084, allocations: 27.78 kB / 426.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.1084, allocations: 12 kB / 426.3 MB, free: 4.398 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.1085, allocations: 142.4 kB / 426.4 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.509e-05/0.1086, allocations: 27.78 kB / 426.5 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.656e-05/0.1086, allocations: 21.41 kB / 426.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.84e-06/0.1086, allocations: 8 kB / 426.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1086, allocations: 0 / 426.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.1087, allocations: 0 / 426.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005568/0.1092, allocations: 424.8 kB / 426.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1092, allocations: 4 kB / 426.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.1094, allocations: 35.92 kB / 426.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.1094, allocations: 4 kB / 427 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.1094, allocations: 12.09 kB / 427 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1094, allocations: 0 / 427 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1094, allocations: 0 / 427 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004057/0.1098, allocations: 381 kB / 427.3 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.607e-05/0.1099, allocations: 101 kB / 427.4 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.1099, allocations: 7.938 kB / 427.4 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.1101, allocations: 8.281 kB / 427.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.1101, allocations: 11.97 kB / 427.5 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.1101, allocations: 8 kB / 427.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001262/0.1102, allocations: 144.3 kB / 427.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1102, allocations: 0 / 427.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003499/0.1106, allocations: 59.89 kB / 427.7 MB, free: 2.906 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * 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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007278/0.1113, allocations: 0.9093 MB / 428.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002729/0.1116, allocations: 134.2 kB / 428.7 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1116, allocations: 0 / 428.7 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.936e-05/0.1117, allocations: 56.22 kB / 428.8 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004847/0.1121, allocations: 29.19 kB / 428.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002924/0.1151, allocations: 2.573 MB / 431.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.1154, allocations: 0.7397 MB / 432.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.883e-05/0.1155, allocations: 21.95 kB / 432.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.399e-05/0.1156, allocations: 51.42 kB / 432.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1156, allocations: 0 / 432.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02128/0.1369, allocations: 3.8 MB / 436 MB, free: 10.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.79/7.927, allocations: 17.06 kB / 436 MB, free: 10.45 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.WhyArrows.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: 10.391145557980053]