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.001163/0.001163, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 59.91 kB / 358.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2822, allocations: 50.54 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001444/0.2837, allocations: 487.7 kB / 409.2 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002512/0.2839, allocations: 59.78 kB / 409.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.108e-05/0.284, allocations: 0 / 409.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.284, allocations: 7.938 kB / 409.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.398e-05/0.2841, allocations: 11.98 kB / 409.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.2843, allocations: 19.97 kB / 409.3 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.139e-05/0.2844, allocations: 23.92 kB / 409.3 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.575e-05/0.2844, allocations: 4 kB / 409.3 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.256e-05/0.2844, allocations: 11.97 kB / 409.3 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.612e-05/0.2845, allocations: 23.92 kB / 409.4 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.2845, allocations: 0 / 409.4 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.185e-05/0.2846, allocations: 8 kB / 409.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.653e-05/0.2846, allocations: 4 kB / 409.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.994e-05/0.2847, allocations: 15.92 kB / 409.4 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.12e-05/0.2848, allocations: 27.92 kB / 409.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2848, allocations: 0 / 409.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2848, allocations: 0 / 409.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.2848, allocations: 0 / 409.4 MB, free: 0.8867 MB / 318.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.0003646/0.2852, allocations: 366.9 kB / 409.8 MB, free: 484 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.2852, allocations: 12.03 kB / 409.8 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.119e-05/0.2853, allocations: 34.66 kB / 409.8 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.2853, allocations: 4.938 kB / 409.8 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.2854, allocations: 176.2 kB / 410 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.2854, allocations: 8.312 kB / 410 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.2855, allocations: 8.375 kB / 410 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.2856, allocations: 74.16 kB / 410.1 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.2856, allocations: 3.938 kB / 410.1 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.2856, allocations: 0 / 410.1 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2856, allocations: 4 kB / 410.1 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.994e-05/0.2857, allocations: 27.98 kB / 410.1 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002576/0.2859, allocations: 248.9 kB / 410.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.474e-05/0.286, allocations: 74.48 kB / 410.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.731e-05/0.2861, allocations: 60.81 kB / 410.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.2861, allocations: 4 kB / 410.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.2862, allocations: 56.27 kB / 410.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.2862, allocations: 0 / 410.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003025/0.2865, allocations: 211.2 kB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.2865, allocations: 85.09 kB / 410.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.39e-05/0.2866, allocations: 113.8 kB / 410.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.2867, allocations: 25.7 kB / 411 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.579e-05/0.2867, allocations: 88.14 kB / 411.1 MB, free: 15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.785e-05/0.2867, allocations: 23.8 kB / 411.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.417e-05/0.2868, allocations: 25.7 kB / 411.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.2869, allocations: 314.8 kB / 411.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.9e-05/0.2869, allocations: 27.98 kB / 411.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.498e-05/0.287, allocations: 35.98 kB / 411.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001085/0.2871, allocations: 132.2 kB / 411.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2871, allocations: 4 kB / 411.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001733/0.2873, allocations: 171.6 kB / 411.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.2873, allocations: 44.5 kB / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.2873, allocations: 0 / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.2873, allocations: 0 / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.726e-05/0.2874, allocations: 4 kB / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.2874, allocations: 4 kB / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.282e-05/0.2874, allocations: 3.906 kB / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.2874, allocations: 4 kB / 411.8 MB, free: 14.17 MB / 334.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.0001057/0.2875, allocations: 159.4 kB / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.694e-05/0.2876, allocations: 4 kB / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.654e-05/0.2876, allocations: 4.375 kB / 412 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.2876, allocations: 4 kB / 412 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2876, allocations: 0 / 412 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2876, allocations: 3.984 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003684/0.288, allocations: 432.2 kB / 412.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.288, allocations: 0 / 412.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.804e-06/0.288, allocations: 4 kB / 412.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.288, allocations: 11.98 kB / 412.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.288, allocations: 0 / 412.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.288, allocations: 0 / 412.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.288, allocations: 0 / 412.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.2883, allocations: 293 kB / 412.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.674e-05/0.2883, allocations: 84.95 kB / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.2884, allocations: 4 kB / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.325e-05/0.2884, allocations: 4 kB / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.83e-05/0.2884, allocations: 8 kB / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.2885, allocations: 3.938 kB / 412.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.458e-05/0.2885, allocations: 95.27 kB / 412.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2885, allocations: 0 / 412.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00022/0.2887, allocations: 8 kB / 412.9 MB, free: 12.95 MB / 334.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.0007288/0.2895, allocations: 0.9117 MB / 413.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.2897, allocations: 143.4 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2897, allocations: 3.938 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.899e-05/0.2898, allocations: 103.4 kB / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.29, allocations: 8 kB / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.2912, allocations: 1.559 MB / 415.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.2915, allocations: 0.6846 MB / 416.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.278e-05/0.2915, allocations: 4 kB / 416.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.617e-05/0.2916, allocations: 15.42 kB / 416.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2916, allocations: 0 / 416.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01829/0.3099, allocations: 1.925 MB / 418.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.611/7.921, allocations: 10.48 kB / 418.3 MB, free: 7.535 MB / 334.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