Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.393/1.393, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 51.88 kB / 373 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09955/0.1011, allocations: 53.33 MB / 426.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001739/0.1029, allocations: 477.3 kB / 426.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000268/0.1031, allocations: 71.72 kB / 426.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.711e-05/0.1032, allocations: 0 / 426.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.067e-05/0.1032, allocations: 3.938 kB / 426.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.909e-05/0.1033, allocations: 11.98 kB / 426.8 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001744/0.1034, allocations: 27.84 kB / 426.9 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.1035, allocations: 19.98 kB / 426.9 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.132e-05/0.1036, allocations: 3.984 kB / 426.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.042e-05/0.1036, allocations: 15.98 kB / 426.9 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.014e-05/0.1037, allocations: 23.97 kB / 426.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.1037, allocations: 3.938 kB / 426.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.661e-05/0.1038, allocations: 8 kB / 426.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.478e-05/0.1038, allocations: 11.98 kB / 426.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.976e-05/0.1038, allocations: 3.938 kB / 427 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.1039, allocations: 19.92 kB / 427 MB, free: 4.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1039, allocations: 0 / 427 MB, free: 4.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1039, allocations: 4 kB / 427 MB, free: 4.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.104, allocations: 0 / 427 MB, free: 4.145 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004207/0.1044, allocations: 377 kB / 427.3 MB, free: 3.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.1044, allocations: 8.031 kB / 427.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.83e-05/0.1045, allocations: 46.69 kB / 427.4 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.1045, allocations: 4.891 kB / 427.4 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001674/0.1047, allocations: 172.3 kB / 427.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.1047, allocations: 384 / 427.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.1047, allocations: 4.375 kB / 427.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.1048, allocations: 74.23 kB / 427.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1049, allocations: 3.938 kB / 427.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.1049, allocations: 8 kB / 427.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1049, allocations: 0 / 427.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.374e-05/0.1049, allocations: 27.98 kB / 427.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002895/0.1052, allocations: 252.8 kB / 427.9 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.723e-05/0.1053, allocations: 58.5 kB / 428 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.046e-05/0.1054, allocations: 52.89 kB / 428 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.1054, allocations: 0 / 428 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.406e-05/0.1054, allocations: 64.27 kB / 428.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.11e-07/0.1054, allocations: 3.938 kB / 428.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003578/0.1058, allocations: 219.4 kB / 428.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.1059, allocations: 85.09 kB / 428.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.757e-05/0.106, allocations: 109.8 kB / 428.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.106, allocations: 25.7 kB / 428.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.683e-05/0.106, allocations: 88.14 kB / 428.6 MB, free: 2.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.1061, allocations: 15.86 kB / 428.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.691e-05/0.1061, allocations: 33.64 kB / 428.7 MB, free: 2.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1062, allocations: 314.8 kB / 429 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.487e-05/0.1063, allocations: 27.98 kB / 429 MB, free: 1.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.199e-05/0.1063, allocations: 35.98 kB / 429 MB, free: 1.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.1064, allocations: 128.2 kB / 429.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.1065, allocations: 4 kB / 429.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002017/0.1067, allocations: 171.2 kB / 429.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/0.1067, allocations: 37.69 kB / 429.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.1067, allocations: 0 / 429.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1067, allocations: 4 kB / 429.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.042e-05/0.1067, allocations: 4 kB / 429.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.1067, allocations: 4 kB / 429.4 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.297e-05/0.1068, allocations: 3.938 kB / 429.4 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.1068, allocations: 7.938 kB / 429.4 MB, free: 1.434 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($outputAlias_success4,success4,$outputAlias_success3,success3,$outputAlias_success2,success2,$outputAlias_success1,success1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0001181/0.1069, allocations: 153.4 kB / 429.5 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/0.1069, allocations: 7.953 kB / 429.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.726e-05/0.1069, allocations: 4.375 kB / 429.6 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.1069, allocations: 4 kB / 429.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.107, allocations: 4 kB / 429.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.107, allocations: 3.984 kB / 429.6 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004347/0.1074, allocations: 436.2 kB / 430 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1074, allocations: 0.5 kB / 430 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.378e-06/0.1074, allocations: 4 kB / 430 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1074, allocations: 0 / 430 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.1074, allocations: 7.984 kB / 430 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1074, allocations: 0 / 430 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1074, allocations: 4 kB / 430 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002804/0.1077, allocations: 297 kB / 430.3 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.203e-05/0.1078, allocations: 81.11 kB / 430.4 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.1078, allocations: 4 kB / 430.4 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.493e-05/0.1078, allocations: 4 kB / 430.4 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.491e-05/0.1078, allocations: 0 / 430.4 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.1078, allocations: 7.984 kB / 430.4 MB, free: 324 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.521e-05/0.1079, allocations: 91.27 kB / 430.5 MB, free: 232 kB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1079, allocations: 0 / 430.5 MB, free: 232 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002265/0.1081, allocations: 19.94 kB / 430.5 MB, free: 212 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 4 ($outputAlias_success4,$outputAlias_success3,$outputAlias_success2,$outputAlias_success1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0009252/0.109, allocations: 0.9066 MB / 431.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002136/0.1093, allocations: 139.4 kB / 431.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1093, allocations: 0 / 431.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.898e-05/0.1094, allocations: 99.31 kB / 431.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.1096, allocations: 8 kB / 431.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.1112, allocations: 1.551 MB / 433.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.1115, allocations: 0.6846 MB / 433.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.514e-05/0.1115, allocations: 0 / 433.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.343e-05/0.1116, allocations: 15.44 kB / 433.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1116, allocations: 0 / 433.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02541/0.137, allocations: 1.92 MB / 435.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.763/7.9, allocations: 7.031 kB / 435.8 MB, free: 10.84 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.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.38225391600281]