Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001356/0.001356, allocations: 107.9 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001598/0.001598, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 59.34 kB / 306.5 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1063, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002764/0.1091, allocations: 0.5402 MB / 357.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000278/0.1094, allocations: 51.86 kB / 357.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.643e-05/0.1095, allocations: 3.938 kB / 357.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.069e-05/0.1096, allocations: 0 / 357.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.798e-05/0.1096, allocations: 11.98 kB / 357.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.1099, allocations: 19.97 kB / 357.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.83e-05/0.11, allocations: 19.98 kB / 357.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.813e-05/0.11, allocations: 7.984 kB / 357.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.561e-05/0.1101, allocations: 11.98 kB / 357.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.987e-05/0.1102, allocations: 23.92 kB / 357.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.1102, allocations: 4 kB / 357.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.59e-05/0.1102, allocations: 8 kB / 357.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.479e-05/0.1103, allocations: 7.984 kB / 357.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.489e-05/0.1103, allocations: 11.92 kB / 357.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.396e-05/0.1104, allocations: 23.92 kB / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1104, allocations: 4 kB / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1104, allocations: 3.938 kB / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1105, allocations: 0 / 357.8 MB, free: 13.57 MB / 302.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.0003421/0.1108, allocations: 361.5 kB / 358.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1108, allocations: 8.031 kB / 358.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.078e-05/0.1109, allocations: 46.59 kB / 358.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.986e-05/0.1109, allocations: 12.83 kB / 358.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.1111, allocations: 164.4 kB / 358.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1111, allocations: 4.312 kB / 358.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.1111, allocations: 4.375 kB / 358.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.1112, allocations: 70.23 kB / 358.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.1113, allocations: 11.88 kB / 358.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-06/0.1113, allocations: 0 / 358.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.1113, allocations: 4 kB / 358.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.14e-05/0.1113, allocations: 35.91 kB / 358.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002374/0.1116, allocations: 248.8 kB / 358.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.402e-05/0.1117, allocations: 66.5 kB / 358.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.019e-05/0.1118, allocations: 60.83 kB / 358.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.495e-06/0.1118, allocations: 0 / 358.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.1118, allocations: 68.27 kB / 359 MB, free: 12.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 8.72e-07/0.1118, allocations: 0 / 359 MB, free: 12.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003014/0.1121, allocations: 211.5 kB / 359.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.505e-05/0.1122, allocations: 77.11 kB / 359.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.023e-05/0.1123, allocations: 113.8 kB / 359.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.1123, allocations: 25.7 kB / 359.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.719e-05/0.1123, allocations: 84.14 kB / 359.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.695e-05/0.1124, allocations: 19.66 kB / 359.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.893e-05/0.1124, allocations: 29.7 kB / 359.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1126, allocations: 314.8 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.015e-05/0.1126, allocations: 35.92 kB / 359.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.351e-05/0.1126, allocations: 31.98 kB / 359.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.1128, allocations: 132.2 kB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1128, allocations: 0 / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001764/0.1129, allocations: 179.1 kB / 360.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.985e-05/0.113, allocations: 29.7 kB / 360.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.113, allocations: 0 / 360.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.113, allocations: 8 kB / 360.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.651e-05/0.113, allocations: 4 kB / 360.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.113, allocations: 0 / 360.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.921e-05/0.1131, allocations: 3.938 kB / 360.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.1131, allocations: 4 kB / 360.2 MB, free: 10.86 MB / 302.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.0001094/0.1132, allocations: 158.6 kB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.1132, allocations: 7.906 kB / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.837e-05/0.1133, allocations: 12.36 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1133, allocations: 0 / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1133, allocations: 4.438 kB / 360.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1133, allocations: 0 / 360.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004005/0.1137, allocations: 444.5 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1137, allocations: 4 kB / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.955e-06/0.1137, allocations: 0 / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1137, allocations: 0 / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.1137, allocations: 8 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1138, allocations: 3.984 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1138, allocations: 3.938 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003865/0.1142, allocations: 289.1 kB / 361.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.903e-05/0.1142, allocations: 85.02 kB / 361.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.1143, allocations: 0 / 361.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.613e-05/0.1143, allocations: 4 kB / 361.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.276e-05/0.1144, allocations: 7.984 kB / 361.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.1144, allocations: 4 kB / 361.3 MB, free: 9.734 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.191e-05/0.1144, allocations: 91.22 kB / 361.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1144, allocations: 4 kB / 361.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.1147, allocations: 16 kB / 361.4 MB, free: 9.625 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.0009743/0.1157, allocations: 0.9019 MB / 362.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002376/0.1159, allocations: 143.3 kB / 362.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1159, allocations: 0 / 362.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.585e-05/0.116, allocations: 107.4 kB / 362.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.1162, allocations: 8 kB / 362.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.1179, allocations: 1.559 MB / 364.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.1182, allocations: 0.6846 MB / 364.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.352e-05/0.1182, allocations: 0 / 364.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/0.1182, allocations: 19.44 kB / 364.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1182, allocations: 0 / 364.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01297/0.1312, allocations: 1.778 MB / 366.6 MB, free: 4.391 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003235/0.1316, allocations: 244.2 kB / 366.8 MB, free: 4.133 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.677/1.809, allocations: 7.234 kB / 366.8 MB, free: 4.129 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches