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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 110.6 kB / 16.62 MB, free: 6.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 190 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000969/0.000969, allocations: 46.64 kB / 300.2 MB, free: 5.926 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09202/0.09301, allocations: 49.45 MB / 349.7 MB, free: 4.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001532/0.09458, allocations: 0.5393 MB / 350.2 MB, free: 3.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002026/0.09479, allocations: 59.8 kB / 350.3 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.077e-05/0.09482, allocations: 0 / 350.3 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.53e-05/0.09486, allocations: 3.984 kB / 350.3 MB, free: 3.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.74e-05/0.09493, allocations: 15.98 kB / 350.3 MB, free: 3.859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001257/0.09506, allocations: 19.92 kB / 350.3 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.969e-05/0.09513, allocations: 15.98 kB / 350.3 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.09518, allocations: 8 kB / 350.3 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.638e-05/0.09521, allocations: 15.97 kB / 350.3 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.696e-05/0.09527, allocations: 19.92 kB / 350.4 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.554e-05/0.09529, allocations: 4 kB / 350.4 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.371e-05/0.09533, allocations: 7.984 kB / 350.4 MB, free: 3.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.09537, allocations: 4 kB / 350.4 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.773e-05/0.09541, allocations: 11.92 kB / 350.4 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.441e-05/0.09549, allocations: 27.92 kB / 350.4 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.83e-06/0.0955, allocations: 7.938 kB / 350.4 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09551, allocations: 0 / 350.4 MB, free: 3.719 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.09552, allocations: 0 / 350.4 MB, free: 3.719 MB / 286.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.000289/0.09581, allocations: 357.5 kB / 350.8 MB, free: 3.312 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.09585, allocations: 8.031 kB / 350.8 MB, free: 3.305 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.579e-05/0.09591, allocations: 54.56 kB / 350.8 MB, free: 3.242 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.53e-05/0.09594, allocations: 4.844 kB / 350.8 MB, free: 3.238 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.09605, allocations: 168.3 kB / 351 MB, free: 3.035 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.426e-06/0.09606, allocations: 4.375 kB / 351 MB, free: 3.031 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.09608, allocations: 8.375 kB / 351 MB, free: 3.023 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.0962, allocations: 70.22 kB / 351.1 MB, free: 2.949 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.09621, allocations: 3.938 kB / 351.1 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.09623, allocations: 8 kB / 351.1 MB, free: 2.938 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-06/0.09624, allocations: 3.938 kB / 351.1 MB, free: 2.934 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.351e-05/0.09628, allocations: 31.97 kB / 351.1 MB, free: 2.902 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002068/0.0965, allocations: 248.8 kB / 351.4 MB, free: 2.609 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.199e-05/0.09659, allocations: 74.48 kB / 351.5 MB, free: 2.527 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.293e-05/0.09665, allocations: 52.91 kB / 351.5 MB, free: 2.473 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-06/0.09666, allocations: 3.984 kB / 351.5 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.0967, allocations: 56.27 kB / 351.6 MB, free: 2.398 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.183e-06/0.09671, allocations: 4 kB / 351.6 MB, free: 2.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002781/0.09699, allocations: 203.3 kB / 351.8 MB, free: 2.184 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.09704, allocations: 77.11 kB / 351.8 MB, free: 2.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.115e-05/0.09712, allocations: 117.8 kB / 352 MB, free: 1.965 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.09714, allocations: 29.7 kB / 352 MB, free: 1.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.412e-05/0.09719, allocations: 84.12 kB / 352.1 MB, free: 1.844 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.09722, allocations: 27.8 kB / 352.1 MB, free: 1.816 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-05/0.09726, allocations: 25.72 kB / 352.1 MB, free: 1.785 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.504e-05/0.09736, allocations: 318.8 kB / 352.4 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.773e-05/0.0974, allocations: 31.98 kB / 352.5 MB, free: 1.434 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.139e-05/0.09744, allocations: 31.98 kB / 352.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.574e-05/0.09754, allocations: 136.2 kB / 352.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.09755, allocations: 0 / 352.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001645/0.09772, allocations: 179.5 kB / 352.8 MB, free: 1.066 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.09776, allocations: 33.69 kB / 352.8 MB, free: 1.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.09777, allocations: 3.984 kB / 352.8 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.09778, allocations: 0 / 352.8 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.576e-05/0.0978, allocations: 4 kB / 352.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.09781, allocations: 0 / 352.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/0.09784, allocations: 0 / 352.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.09785, allocations: 8 kB / 352.9 MB, free: 1.012 MB / 286.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 8.42e-05/0.09794, allocations: 151.5 kB / 353 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.09797, allocations: 7.938 kB / 353 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.956e-05/0.098, allocations: 12.38 kB / 353 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.098, allocations: 0 / 353 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.09801, allocations: 0 / 353 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.09802, allocations: 3.938 kB / 353 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003374/0.09836, allocations: 440.5 kB / 353.5 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.09837, allocations: 8 kB / 353.5 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.761e-06/0.09838, allocations: 0 / 353.5 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.09839, allocations: 0 / 353.5 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.0984, allocations: 8 kB / 353.5 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.09841, allocations: 3.938 kB / 353.5 MB, free: 316 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.09841, allocations: 0 / 353.5 MB, free: 316 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002033/0.09862, allocations: 285.1 kB / 353.8 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-05/0.09868, allocations: 89 kB / 353.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.0987, allocations: 0 / 353.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.335e-05/0.09875, allocations: 8 kB / 353.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.09877, allocations: 0 / 353.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.09878, allocations: 8 kB / 353.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.763e-05/0.09882, allocations: 87.27 kB / 353.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09882, allocations: 0 / 353.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002187/0.09905, allocations: 20 kB / 354 MB, free: 15.78 MB / 302.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.0006354/0.09969, allocations: 0.9019 MB / 354.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001671/0.09987, allocations: 143.4 kB / 355 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.09988, allocations: 3.938 kB / 355 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.306e-05/0.09996, allocations: 107.3 kB / 355.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/0.1002, allocations: 8 kB / 355.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.1013, allocations: 1.565 MB / 356.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.1015, allocations: 0.6846 MB / 357.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.287e-05/0.1015, allocations: 3.984 kB / 357.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.696e-05/0.1016, allocations: 19.44 kB / 357.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1016, allocations: 0 / 357.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01095/0.1125, allocations: 1.783 MB / 359.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/0.1128, allocations: 238.6 kB / 359.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/1.813, allocations: 0 / 359.4 MB, free: 10.3 MB / 302.1 MB (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 --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) 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) Reference file matches