Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.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.001452/0.001452, allocations: 108.6 kB / 18.49 MB, free: 4.543 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.001448/0.001448, allocations: 197 kB / 21.43 MB, free: 1.609 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.372/1.372, allocations: 225.6 MB / 249.8 MB, free: 3.602 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.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 43.94 kB / 366.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09889, allocations: 52.14 MB / 418.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001426/0.1003, allocations: 488.7 kB / 418.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002536/0.1006, allocations: 63.8 kB / 419 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.59e-05/0.1006, allocations: 0 / 419 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.097e-05/0.1006, allocations: 4 kB / 419 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.467e-05/0.1007, allocations: 15.97 kB / 419 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000148/0.1008, allocations: 23.92 kB / 419 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.762e-05/0.1009, allocations: 15.98 kB / 419 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.101, allocations: 19.84 kB / 419.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.055e-05/0.101, allocations: 8 kB / 419.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.281e-05/0.1011, allocations: 27.97 kB / 419.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.392e-05/0.1011, allocations: 0 / 419.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.613e-05/0.1011, allocations: 4 kB / 419.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.071e-05/0.1012, allocations: 15.91 kB / 419.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.821e-05/0.1012, allocations: 7.938 kB / 419.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.99e-05/0.1013, allocations: 27.92 kB / 419.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1013, allocations: 0 / 419.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1013, allocations: 0 / 419.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1013, allocations: 0 / 419.2 MB, free: 11.94 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.0004503/0.1017, allocations: 373 kB / 419.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.1018, allocations: 8.031 kB / 419.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.149e-05/0.1018, allocations: 192 / 419.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.316e-05/0.1018, allocations: 42.69 kB / 419.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.653e-05/0.1019, allocations: 8.938 kB / 419.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.102, allocations: 176.3 kB / 419.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.102, allocations: 4.375 kB / 419.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.102, allocations: 384 / 419.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001383/0.1022, allocations: 73.98 kB / 419.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.1022, allocations: 0 / 419.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.1022, allocations: 0 / 419.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.1022, allocations: 0 / 419.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.866e-05/0.1022, allocations: 35.98 kB / 419.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002648/0.1025, allocations: 248.8 kB / 420.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.133e-05/0.1026, allocations: 70.48 kB / 420.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.379e-05/0.1027, allocations: 48.89 kB / 420.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.1027, allocations: 0 / 420.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.1027, allocations: 60.27 kB / 420.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 8.51e-07/0.1027, allocations: 0 / 420.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003436/0.1031, allocations: 219.4 kB / 420.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.1031, allocations: 77.11 kB / 420.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.1032, allocations: 121.8 kB / 420.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.1032, allocations: 25.7 kB / 420.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.601e-05/0.1033, allocations: 80.14 kB / 420.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.1033, allocations: 27.78 kB / 420.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.1034, allocations: 21.72 kB / 420.8 MB, free: 10.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.1035, allocations: 314.8 kB / 421.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.491e-05/0.1036, allocations: 35.98 kB / 421.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.882e-05/0.1036, allocations: 32.3 kB / 421.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.1037, allocations: 136.2 kB / 421.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1038, allocations: 7.938 kB / 421.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001836/0.1039, allocations: 171.3 kB / 421.5 MB, free: 9.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.104, allocations: 31.73 kB / 421.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.104, allocations: 0 / 421.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.104, allocations: 4 kB / 421.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.708e-05/0.104, allocations: 3.984 kB / 421.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.104, allocations: 0 / 421.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.197e-05/0.104, allocations: 7.891 kB / 421.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-06/0.104, allocations: 4 kB / 421.6 MB, free: 9.234 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.0001079/0.1041, allocations: 156.1 kB / 421.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.1042, allocations: 4 kB / 421.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.155e-05/0.1042, allocations: 16.31 kB / 421.7 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1042, allocations: 0 / 421.7 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1042, allocations: 0 / 421.7 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1042, allocations: 3.938 kB / 421.7 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004097/0.1046, allocations: 440.2 kB / 422.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1046, allocations: 0 / 422.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.741e-06/0.1046, allocations: 0 / 422.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1046, allocations: 7.938 kB / 422.2 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.1046, allocations: 8 kB / 422.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1046, allocations: 0 / 422.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1046, allocations: 0 / 422.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.1049, allocations: 289.1 kB / 422.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.105, allocations: 81.06 kB / 422.6 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.105, allocations: 4 kB / 422.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.104e-05/0.105, allocations: 0 / 422.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.173e-05/0.105, allocations: 11.98 kB / 422.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-06/0.1051, allocations: 4 kB / 422.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.843e-05/0.1051, allocations: 87.45 kB / 422.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1051, allocations: 0 / 422.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002254/0.1053, allocations: 23.88 kB / 422.7 MB, free: 8.004 MB / 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.0008475/0.1062, allocations: 0.918 MB / 423.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001877/0.1064, allocations: 131.4 kB / 423.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1064, allocations: 0 / 423.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.363e-05/0.1064, allocations: 99.31 kB / 423.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.1066, allocations: 6.188 kB / 423.8 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.108, allocations: 1.558 MB / 425.4 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.1083, allocations: 0.6961 MB / 426.1 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.112e-05/0.1083, allocations: 0 / 426.1 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.632e-05/0.1084, allocations: 11.44 kB / 426.1 MB, free: 4.438 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1084, allocations: 4 kB / 426.1 MB, free: 4.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.1267, allocations: 1.956 MB / 428.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.424/7.55, allocations: 27.77 kB / 428.1 MB, free: 2.574 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.933425490977243]