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.001/0.001, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 60.41 kB / 306.3 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1026, allocations: 50.53 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001664/0.1043, allocations: 0.5386 MB / 357.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002944/0.1046, allocations: 63.73 kB / 357.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.941e-05/0.1046, allocations: 0 / 357.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.191e-05/0.1047, allocations: 0 / 357.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.863e-05/0.1048, allocations: 11.98 kB / 357.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001595/0.1049, allocations: 19.97 kB / 357.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.622e-05/0.105, allocations: 19.92 kB / 357.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.114e-05/0.105, allocations: 0 / 357.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.535e-05/0.1051, allocations: 15.98 kB / 357.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.141e-05/0.1052, allocations: 31.91 kB / 357.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.1052, allocations: 0 / 357.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.414e-05/0.1052, allocations: 4 kB / 357.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.135e-05/0.1053, allocations: 7.984 kB / 357.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.317e-05/0.1053, allocations: 11.94 kB / 357.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.128e-05/0.1054, allocations: 23.91 kB / 357.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1054, allocations: 4 kB / 357.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.1054, allocations: 0 / 357.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.1054, allocations: 0 / 357.6 MB, free: 13.68 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.0003612/0.1058, allocations: 359.7 kB / 358 MB, free: 13.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1058, allocations: 12.03 kB / 358 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.915e-05/0.1059, allocations: 50.58 kB / 358 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.747e-05/0.1059, allocations: 8.844 kB / 358 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.1061, allocations: 164.4 kB / 358.2 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.1061, allocations: 4.312 kB / 358.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.308e-06/0.1061, allocations: 8.312 kB / 358.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.1062, allocations: 66.23 kB / 358.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1062, allocations: 3.938 kB / 358.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.1063, allocations: 4 kB / 358.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.1063, allocations: 0 / 358.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.561e-05/0.1063, allocations: 35.98 kB / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002548/0.1066, allocations: 252.8 kB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.864e-05/0.1067, allocations: 70.48 kB / 358.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.647e-05/0.1067, allocations: 57.05 kB / 358.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-06/0.1068, allocations: 0 / 358.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.1068, allocations: 64.27 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.1068, allocations: 4 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003059/0.1071, allocations: 207.5 kB / 359 MB, free: 12.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.1072, allocations: 77.11 kB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.872e-05/0.1073, allocations: 117.8 kB / 359.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.1073, allocations: 25.7 kB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.495e-05/0.1073, allocations: 80.14 kB / 359.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.795e-05/0.1074, allocations: 23.66 kB / 359.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.1074, allocations: 33.64 kB / 359.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1075, allocations: 310.8 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.118e-05/0.1076, allocations: 35.98 kB / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.451e-05/0.1076, allocations: 35.97 kB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.1077, allocations: 128.2 kB / 359.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1077, allocations: 0 / 359.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001804/0.1079, allocations: 191 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.108, allocations: 29.7 kB / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.108, allocations: 0 / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.108, allocations: 8 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.635e-05/0.108, allocations: 0 / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.108, allocations: 0 / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.911e-05/0.108, allocations: 0 / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.1081, allocations: 7.984 kB / 360 MB, free: 10.97 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 9.674e-05/0.1082, allocations: 152.5 kB / 360.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.749e-05/0.1082, allocations: 11.89 kB / 360.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.244e-05/0.1082, allocations: 16.36 kB / 360.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.1082, allocations: 0 / 360.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.1082, allocations: 4.438 kB / 360.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1082, allocations: 0 / 360.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.1086, allocations: 440.1 kB / 360.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.1086, allocations: 8 kB / 360.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.48e-06/0.1086, allocations: 0 / 360.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.1087, allocations: 0 / 360.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.1087, allocations: 4 kB / 360.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1087, allocations: 0 / 360.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1087, allocations: 0 / 360.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002298/0.1089, allocations: 293.1 kB / 361 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.378e-05/0.109, allocations: 85.02 kB / 361 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.109, allocations: 0 / 361 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.406e-05/0.109, allocations: 4 kB / 361 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.681e-05/0.1091, allocations: 3.984 kB / 361 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.1091, allocations: 8 kB / 361.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.145e-05/0.1091, allocations: 83.28 kB / 361.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1091, allocations: 4 kB / 361.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002162/0.1093, allocations: 16 kB / 361.2 MB, free: 9.746 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.0007459/0.1101, allocations: 0.9025 MB / 362.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001888/0.1103, allocations: 147.4 kB / 362.2 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1103, allocations: 0 / 362.2 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.68e-05/0.1104, allocations: 107.4 kB / 362.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.1106, allocations: 6.5 kB / 362.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.1119, allocations: 1.56 MB / 363.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.1122, allocations: 0.6848 MB / 364.6 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.265e-05/0.1122, allocations: 0 / 364.6 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.34e-05/0.1122, allocations: 15.44 kB / 364.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1122, allocations: 0 / 364.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01111/0.1233, allocations: 1.711 MB / 366.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/0.1236, allocations: 248.1 kB / 366.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/1.803, allocations: 3.938 kB / 366.5 MB, free: 4.281 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