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.00136/0.00136, allocations: 114.1 kB / 17.06 MB, free: 6.016 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.001421/0.001421, allocations: 189.4 kB / 18 MB, free: 5.098 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.44/1.44, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 43.92 kB / 350.8 MB, free: 3.809 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2742, allocations: 49.44 MB / 400.2 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001634/0.2759, allocations: 491.7 kB / 400.7 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002897/0.2762, allocations: 55.53 kB / 400.7 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.485e-05/0.2763, allocations: 5.031 kB / 400.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.012e-05/0.2763, allocations: 0 / 400.7 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.2764, allocations: 16.12 kB / 400.8 MB, free: 8.145 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001987/0.2766, allocations: 23.23 kB / 400.8 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.2767, allocations: 21.09 kB / 400.8 MB, free: 8.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.669e-05/0.2768, allocations: 5.234 kB / 400.8 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.991e-05/0.2768, allocations: 7.312 kB / 400.8 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.454e-05/0.2769, allocations: 37.86 kB / 400.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.78e-05/0.277, allocations: 1.094 kB / 400.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.675e-05/0.277, allocations: 5.438 kB / 400.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.127e-05/0.277, allocations: 3.094 kB / 400.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.038e-05/0.2771, allocations: 11.19 kB / 400.9 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.2772, allocations: 27.11 kB / 400.9 MB, free: 8.074 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.2772, allocations: 1.062 kB / 400.9 MB, free: 8.074 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2772, allocations: 3.938 kB / 400.9 MB, free: 8.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.2772, allocations: 0 / 400.9 MB, free: 8.07 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.0004536/0.2777, allocations: 372.2 kB / 401.3 MB, free: 7.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.2777, allocations: 10 kB / 401.3 MB, free: 7.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.208e-05/0.2778, allocations: 41.19 kB / 401.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.072e-05/0.2779, allocations: 3.062 kB / 401.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.278, allocations: 170.6 kB / 401.5 MB, free: 7.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.278, allocations: 6.547 kB / 401.5 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.2781, allocations: 2.969 kB / 401.5 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.2782, allocations: 68.05 kB / 401.6 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.2782, allocations: 3.938 kB / 401.6 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.2783, allocations: 1.031 kB / 401.6 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2783, allocations: 7.938 kB / 401.6 MB, free: 7.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.548e-05/0.2783, allocations: 41.97 kB / 401.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002875/0.2786, allocations: 243.9 kB / 401.9 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001082/0.2787, allocations: 71.2 kB / 401.9 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.089e-05/0.2788, allocations: 54.77 kB / 402 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.2788, allocations: 1.094 kB / 402 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.53e-05/0.2789, allocations: 65.45 kB / 402 MB, free: 6.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.2789, allocations: 1.188 kB / 402 MB, free: 6.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003581/0.2793, allocations: 210.4 kB / 402.2 MB, free: 6.723 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.2793, allocations: 77.11 kB / 402.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.108e-05/0.2794, allocations: 109.8 kB / 402.4 MB, free: 6.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.2795, allocations: 33.7 kB / 402.5 MB, free: 6.473 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.035e-05/0.2795, allocations: 84.12 kB / 402.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.2796, allocations: 19.86 kB / 402.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.003e-05/0.2796, allocations: 21.72 kB / 402.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.2798, allocations: 318.8 kB / 402.9 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.229e-05/0.2799, allocations: 43.86 kB / 402.9 MB, free: 5.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.603e-05/0.2799, allocations: 27.98 kB / 403 MB, free: 5.949 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001295/0.28, allocations: 136.5 kB / 403.1 MB, free: 5.801 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.28, allocations: 0 / 403.1 MB, free: 5.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002033/0.2802, allocations: 175.2 kB / 403.3 MB, free: 5.617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.2803, allocations: 33.69 kB / 403.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.2803, allocations: 0 / 403.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.2803, allocations: 0 / 403.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.575e-05/0.2803, allocations: 8 kB / 403.3 MB, free: 5.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.2804, allocations: 0 / 403.3 MB, free: 5.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.325e-05/0.2804, allocations: 12.27 kB / 403.3 MB, free: 5.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.2804, allocations: 4 kB / 403.3 MB, free: 5.555 MB / 318.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.000128/0.2805, allocations: 155.5 kB / 403.5 MB, free: 5.387 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.364e-05/0.2806, allocations: 4 kB / 403.5 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.473e-05/0.2806, allocations: 12.38 kB / 403.5 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.2806, allocations: 4 kB / 403.5 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2806, allocations: 0 / 403.5 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.2806, allocations: 4 kB / 403.5 MB, free: 5.363 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/0.2811, allocations: 436.1 kB / 403.9 MB, free: 4.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2811, allocations: 0 / 403.9 MB, free: 4.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.56e-06/0.2811, allocations: 4 kB / 403.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2811, allocations: 0 / 403.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.2811, allocations: 0 / 403.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2811, allocations: 4 kB / 403.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2811, allocations: 0 / 403.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002995/0.2814, allocations: 293.1 kB / 404.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.301e-05/0.2815, allocations: 89.05 kB / 404.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.2815, allocations: 0 / 404.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.352e-05/0.2816, allocations: 4 kB / 404.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.74e-05/0.2816, allocations: 0 / 404.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.2816, allocations: 4 kB / 404.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.303e-05/0.2817, allocations: 95.2 kB / 404.4 MB, free: 4.352 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2817, allocations: 0 / 404.4 MB, free: 4.352 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002275/0.2819, allocations: 15.94 kB / 404.4 MB, free: 4.336 MB / 318.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.0009345/0.2829, allocations: 0.9115 MB / 405.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002155/0.2831, allocations: 143.7 kB / 405.5 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2831, allocations: 4 kB / 405.5 MB, free: 3.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.2832, allocations: 107.4 kB / 405.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.2834, allocations: 4 kB / 405.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.285, allocations: 1.563 MB / 407.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/0.2854, allocations: 0.6922 MB / 407.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.333e-05/0.2854, allocations: 0 / 407.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.348e-05/0.2855, allocations: 11.44 kB / 407.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.2855, allocations: 0 / 407.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.308, allocations: 1.903 MB / 409.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/8.169, allocations: 16.5 kB / 409.8 MB, free: 14.94 MB / 334.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