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.001609/0.001609, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.001765/0.001765, allocations: 198.9 kB / 18 MB, free: 5.082 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.276/1.276, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 35.94 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2328, allocations: 49.44 MB / 400.2 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001662/0.2345, allocations: 0.4915 MB / 400.7 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000239/0.2348, allocations: 59.97 kB / 400.8 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.978e-05/0.2348, allocations: 0 / 400.8 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.519e-05/0.2348, allocations: 0 / 400.8 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-05/0.2349, allocations: 11.8 kB / 400.8 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001426/0.2351, allocations: 27.41 kB / 400.8 MB, free: 8.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.95e-05/0.2352, allocations: 17.08 kB / 400.8 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.184e-05/0.2352, allocations: 5.375 kB / 400.8 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.748e-05/0.2352, allocations: 16.34 kB / 400.8 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.097e-05/0.2353, allocations: 21.52 kB / 400.8 MB, free: 8.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.2353, allocations: 1.094 kB / 400.8 MB, free: 8.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.717e-05/0.2354, allocations: 5.25 kB / 400.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.705e-05/0.2354, allocations: 7.141 kB / 400.9 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.619e-05/0.2354, allocations: 15.7 kB / 400.9 MB, free: 8.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.552e-05/0.2355, allocations: 22.77 kB / 400.9 MB, free: 8.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2355, allocations: 4.969 kB / 400.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2356, allocations: 0 / 400.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.247e-06/0.2356, allocations: 0 / 400.9 MB, free: 8.148 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.0003226/0.2359, allocations: 359.2 kB / 401.3 MB, free: 7.754 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2359, allocations: 10.28 kB / 401.3 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.762e-05/0.236, allocations: 45.08 kB / 401.3 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.236, allocations: 3.594 kB / 401.3 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.2361, allocations: 177.6 kB / 401.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.2362, allocations: 2.938 kB / 401.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.676e-06/0.2362, allocations: 7 kB / 401.5 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.2363, allocations: 66.95 kB / 401.6 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.2363, allocations: 5.031 kB / 401.6 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.2363, allocations: 5.062 kB / 401.6 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.2364, allocations: 3.938 kB / 401.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.951e-05/0.2364, allocations: 30.05 kB / 401.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002645/0.2367, allocations: 252.4 kB / 401.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.62e-05/0.2368, allocations: 69.8 kB / 401.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.254e-05/0.2369, allocations: 56.81 kB / 402 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.472e-06/0.2369, allocations: 0 / 402 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.455e-05/0.2369, allocations: 60.27 kB / 402 MB, free: 6.977 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.81e-07/0.2369, allocations: 0 / 402 MB, free: 6.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003512/0.2373, allocations: 211.2 kB / 402.2 MB, free: 6.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.2374, allocations: 81.11 kB / 402.3 MB, free: 6.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.116e-05/0.2374, allocations: 113.8 kB / 402.4 MB, free: 6.539 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.2375, allocations: 29.64 kB / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.578e-05/0.2375, allocations: 84.3 kB / 402.5 MB, free: 6.418 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.975e-05/0.2376, allocations: 27.64 kB / 402.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.2376, allocations: 25.7 kB / 402.6 MB, free: 6.359 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.2377, allocations: 318.8 kB / 402.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.127e-05/0.2378, allocations: 27.98 kB / 402.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.476e-05/0.2378, allocations: 35.97 kB / 403 MB, free: 5.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.2379, allocations: 128.2 kB / 403.1 MB, free: 5.836 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2379, allocations: 0 / 403.1 MB, free: 5.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001819/0.2381, allocations: 183.5 kB / 403.3 MB, free: 5.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/0.2382, allocations: 33.7 kB / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.2382, allocations: 0 / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2382, allocations: 0 / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.59e-05/0.2382, allocations: 0 / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.2382, allocations: 3.984 kB / 403.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.055e-05/0.2382, allocations: 4.438 kB / 403.3 MB, free: 5.598 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.2383, allocations: 7.984 kB / 403.3 MB, free: 5.59 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 9.651e-05/0.2384, allocations: 147.5 kB / 403.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.789e-05/0.2384, allocations: 11.91 kB / 403.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.218e-05/0.2384, allocations: 12.36 kB / 403.5 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.2384, allocations: 3.938 kB / 403.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2384, allocations: 4 kB / 403.5 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.2384, allocations: 0 / 403.5 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00038/0.2388, allocations: 436.2 kB / 403.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2388, allocations: 0 / 403.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.811e-06/0.2389, allocations: 0 / 403.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.2389, allocations: 0 / 403.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.2389, allocations: 7.938 kB / 403.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2389, allocations: 4 kB / 403.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2389, allocations: 0 / 403.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002532/0.2391, allocations: 289 kB / 404.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.47e-05/0.2392, allocations: 85.05 kB / 404.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.2392, allocations: 0 / 404.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.365e-05/0.2393, allocations: 4 kB / 404.3 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.2393, allocations: 3.984 kB / 404.3 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.2393, allocations: 8 kB / 404.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.251e-05/0.2394, allocations: 87.28 kB / 404.4 MB, free: 4.391 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2394, allocations: 0 / 404.4 MB, free: 4.391 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002388/0.2396, allocations: 20 kB / 404.4 MB, free: 4.371 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.0008003/0.2404, allocations: 0.9118 MB / 405.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.2406, allocations: 143.8 kB / 405.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2406, allocations: 0 / 405.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.138e-05/0.2407, allocations: 107.3 kB / 405.6 MB, free: 3.168 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.2409, allocations: 10.5 kB / 405.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.2423, allocations: 1.566 MB / 407.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.2426, allocations: 0.6844 MB / 407.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.59e-05/0.2427, allocations: 3.984 kB / 407.8 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.28e-05/0.2427, allocations: 19.44 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2427, allocations: 0 / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.2657, allocations: 1.934 MB / 409.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.539/7.804, allocations: 8.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