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.001011/0.001011, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001158, allocations: 63.3 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09439/0.09557, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002026/0.09764, allocations: 486.8 kB / 358 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002889/0.09795, allocations: 59.73 kB / 358.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.654e-05/0.09801, allocations: 0 / 358.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.339e-05/0.09808, allocations: 0 / 358.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.472e-05/0.09816, allocations: 15.98 kB / 358.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.09835, allocations: 27.91 kB / 358.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.09847, allocations: 23.97 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.371e-05/0.09853, allocations: 4 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.279e-05/0.09857, allocations: 7.984 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.706e-05/0.09866, allocations: 31.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.09868, allocations: 0 / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.866e-05/0.09874, allocations: 4 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.504e-05/0.09879, allocations: 7.984 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.609e-05/0.09883, allocations: 7.938 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.09894, allocations: 31.91 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.09896, allocations: 0 / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09896, allocations: 0 / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.09897, allocations: 4 kB / 358.3 MB, free: 13.34 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.0003919/0.09937, allocations: 357.5 kB / 358.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.09942, allocations: 12.03 kB / 358.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.116e-05/0.0995, allocations: 42.58 kB / 358.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.63e-05/0.09954, allocations: 8.844 kB / 358.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.09968, allocations: 172.3 kB / 358.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.0997, allocations: 4.312 kB / 358.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.09971, allocations: 4.375 kB / 358.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001485/0.09987, allocations: 70.23 kB / 358.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.09989, allocations: 3.938 kB / 358.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.0999, allocations: 0 / 358.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.09991, allocations: 4 kB / 358.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.962e-05/0.09997, allocations: 31.98 kB / 359 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002622/0.1002, allocations: 252.8 kB / 359.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.737e-05/0.1003, allocations: 66.48 kB / 359.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.562e-05/0.1004, allocations: 60.88 kB / 359.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.1004, allocations: 4 kB / 359.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/0.1005, allocations: 60.27 kB / 359.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.1005, allocations: 3.938 kB / 359.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003357/0.1008, allocations: 211.4 kB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.1009, allocations: 81.11 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.74e-05/0.101, allocations: 113.8 kB / 359.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.101, allocations: 25.7 kB / 359.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.539e-05/0.1011, allocations: 92.14 kB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.216e-05/0.1011, allocations: 27.64 kB / 359.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.026e-05/0.1012, allocations: 21.72 kB / 360 MB, free: 11.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1013, allocations: 310.8 kB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.687e-05/0.1013, allocations: 35.97 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.503e-05/0.1014, allocations: 27.98 kB / 360.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.1015, allocations: 132.6 kB / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1015, allocations: 4 kB / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002203/0.1017, allocations: 183.1 kB / 360.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.737e-05/0.1018, allocations: 33.7 kB / 360.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.1018, allocations: 4 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.1018, allocations: 0 / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.298e-05/0.1019, allocations: 0 / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.1019, allocations: 3.984 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.533e-05/0.1019, allocations: 4 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.1019, allocations: 4 kB / 360.7 MB, free: 10.63 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.0001304/0.1021, allocations: 156.5 kB / 360.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.1021, allocations: 15.89 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.391e-05/0.1021, allocations: 8.375 kB / 360.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1021, allocations: 0 / 360.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1022, allocations: 4 kB / 360.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.1022, allocations: 0 / 360.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.1026, allocations: 436.1 kB / 361.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1026, allocations: 0 / 361.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-06/0.1026, allocations: 0 / 361.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.1026, allocations: 8 kB / 361.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.1026, allocations: 0 / 361.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1027, allocations: 0 / 361.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.1027, allocations: 0 / 361.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002508/0.1029, allocations: 297.1 kB / 361.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.733e-05/0.103, allocations: 81.02 kB / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.103, allocations: 4 kB / 361.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.496e-05/0.103, allocations: 0 / 361.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.407e-05/0.1031, allocations: 11.98 kB / 361.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.1031, allocations: 0 / 361.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.851e-05/0.1031, allocations: 91.28 kB / 361.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1031, allocations: 0 / 361.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.1034, allocations: 15.92 kB / 361.8 MB, free: 9.41 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.0008315/0.1042, allocations: 0.9203 MB / 362.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001965/0.1045, allocations: 143.4 kB / 362.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1045, allocations: 0 / 362.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.349e-05/0.1046, allocations: 107.3 kB / 362.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.1048, allocations: 4 kB / 363 MB, free: 8.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.1063, allocations: 1.551 MB / 364.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/0.1067, allocations: 0.6846 MB / 365.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.369e-05/0.1067, allocations: 0 / 365.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.318e-05/0.1068, allocations: 19.42 kB / 365.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1068, allocations: 0 / 365.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.1261, allocations: 1.847 MB / 367.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.508/7.635, allocations: 11.86 kB / 367.1 MB, free: 4.043 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