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.000803/0.000803, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007987/0.0007987, allocations: 174.3 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8509/0.8509, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 3.095e-06/3.095e-06, allocations: 0 / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.346e-05/2.656e-05, allocations: 6.219 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001693/0.00172, allocations: 488.9 kB / 325 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002857/0.002006, allocations: 66.73 kB / 325.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.246e-05/0.002038, allocations: 0 / 325.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.31e-05/0.002071, allocations: 3.938 kB / 325.1 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.137e-05/0.002152, allocations: 11.98 kB / 325.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001753/0.002328, allocations: 23.97 kB / 325.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.629e-05/0.002424, allocations: 15.98 kB / 325.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.256e-05/0.002467, allocations: 4 kB / 325.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.22e-05/0.002509, allocations: 15.92 kB / 325.1 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.389e-05/0.002593, allocations: 35.95 kB / 325.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/0.002609, allocations: 0 / 325.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.62e-05/0.002656, allocations: 11.88 kB / 325.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.495e-05/0.002701, allocations: 4 kB / 325.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.259e-05/0.002733, allocations: 11.92 kB / 325.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.002843, allocations: 23.97 kB / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.002845, allocations: 4 kB / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.002847, allocations: 0 / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.00285, allocations: 0 / 325.2 MB, free: 15.27 MB / 298.7 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.000359/0.003209, allocations: 288 kB / 325.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.003262, allocations: 8.031 kB / 325.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.629e-05/0.003338, allocations: 50.62 kB / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.437e-05/0.003373, allocations: 8.891 kB / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.003479, allocations: 105.8 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.003495, allocations: 4.375 kB / 325.7 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.003511, allocations: 8.297 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.003686, allocations: 95.94 kB / 325.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.003697, allocations: 4.125 kB / 325.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.003709, allocations: 8.375 kB / 325.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.003715, allocations: 4.125 kB / 325.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.682e-05/0.003782, allocations: 53.69 kB / 325.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000266/0.004048, allocations: 232 kB / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001186/0.004167, allocations: 92.19 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.197e-05/0.004249, allocations: 70.61 kB / 326.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.004261, allocations: 7.938 kB / 326.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/0.004307, allocations: 68.19 kB / 326.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.933e-06/0.004309, allocations: 0 / 326.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003522/0.004661, allocations: 262.8 kB / 326.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.00471, allocations: 81.09 kB / 326.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.818e-05/0.004788, allocations: 113.8 kB / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.004804, allocations: 25.7 kB / 326.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.709e-05/0.004841, allocations: 84.14 kB / 326.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.00487, allocations: 27.73 kB / 326.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.163e-05/0.004912, allocations: 25.7 kB / 326.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.747e-05/0.00501, allocations: 318.8 kB / 327.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.58e-05/0.005065, allocations: 57.69 kB / 327.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.988e-05/0.005115, allocations: 61.69 kB / 327.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.005226, allocations: 128.2 kB / 327.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.005228, allocations: 0 / 327.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001942/0.005422, allocations: 205.1 kB / 327.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/0.005457, allocations: 37.64 kB / 327.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.005462, allocations: 0 / 327.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.005478, allocations: 7.984 kB / 327.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.018e-05/0.005498, allocations: 3.938 kB / 327.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.005503, allocations: 4.375 kB / 327.7 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.356e-05/0.005527, allocations: 8 kB / 327.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-06/0.005537, allocations: 0 / 327.7 MB, free: 12.46 MB / 298.7 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 9.757e-05/0.005634, allocations: 151.5 kB / 327.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.005664, allocations: 11.89 kB / 327.9 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.107e-05/0.005685, allocations: 8.438 kB / 327.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.005687, allocations: 0 / 327.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.005691, allocations: 0 / 327.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.005694, allocations: 4 kB / 327.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004029/0.006097, allocations: 448.9 kB / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.0061, allocations: 0 / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.025e-06/0.006108, allocations: 0 / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.006111, allocations: 0 / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.00612, allocations: 7.938 kB / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.006122, allocations: 0 / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.006124, allocations: 0 / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002552/0.006379, allocations: 327.1 kB / 328.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-06/0.006385, allocations: 0 / 328.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.006404, allocations: 7.984 kB / 328.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.2e-05/0.006446, allocations: 0 / 328.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.988e-05/0.006466, allocations: 15.94 kB / 328.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-06/0.006472, allocations: 0 / 328.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.366e-05/0.006516, allocations: 87.27 kB / 328.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.006516, allocations: 4 kB / 328.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002554/0.006771, allocations: 12 kB / 328.8 MB, free: 11.29 MB / 298.7 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.0007604/0.007532, allocations: 0.9721 MB / 329.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000199/0.007731, allocations: 199.1 kB / 330 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.007733, allocations: 0 / 330 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.166e-05/0.007814, allocations: 125.2 kB / 330.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.008045, allocations: 6.953 kB / 330.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.0094, allocations: 1.705 MB / 331.8 MB, free: 8.105 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.963e-05/0.00946, allocations: 67.33 kB / 331.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.393e-05/0.009474, allocations: 4 kB / 331.9 MB, free: 8.016 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.146e-05/0.009505, allocations: 12.5 kB / 331.9 MB, free: 8.004 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.009506, allocations: 0 / 331.9 MB, free: 8.004 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.02637, allocations: 2.56 MB / 334.4 MB, free: 5.512 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.503/6.53, allocations: 4 kB / 334.5 MB, free: 5.508 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/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: 8.1346227619797]