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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001444/0.001444, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001741/0.001741, allocations: 208.7 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 230.5 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 59.91 kB / 378.5 MB, free: 2.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2293, allocations: 53.41 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001412/0.2307, allocations: 487.6 kB / 432.3 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002367/0.231, allocations: 70.95 kB / 432.4 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.53e-05/0.231, allocations: 0 / 432.4 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.248e-05/0.231, allocations: 0 / 432.4 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.687e-05/0.2311, allocations: 11.98 kB / 432.4 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001321/0.2312, allocations: 23.91 kB / 432.5 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.403e-05/0.2313, allocations: 19.97 kB / 432.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.944e-05/0.2313, allocations: 4 kB / 432.5 MB, free: 5.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.278e-05/0.2313, allocations: 19.92 kB / 432.5 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.53e-05/0.2314, allocations: 27.95 kB / 432.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.2314, allocations: 0 / 432.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.518e-05/0.2315, allocations: 4 kB / 432.5 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.65e-05/0.2315, allocations: 11.88 kB / 432.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.601e-05/0.2315, allocations: 11.94 kB / 432.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.319e-05/0.2316, allocations: 26.02 kB / 432.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.2316, allocations: 0 / 432.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2316, allocations: 0 / 432.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.2316, allocations: 4 kB / 432.6 MB, free: 5.766 MB / 334.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.0003261/0.2319, allocations: 295.9 kB / 432.9 MB, free: 5.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.232, allocations: 8.031 kB / 432.9 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.47e-05/0.232, allocations: 192 / 432.9 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.613e-05/0.232, allocations: 46.64 kB / 432.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.488e-05/0.2321, allocations: 4.938 kB / 432.9 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.663e-05/0.2321, allocations: 110.5 kB / 433 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.2322, allocations: 4.375 kB / 433 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.804e-06/0.2322, allocations: 384 / 433 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.2323, allocations: 107.7 kB / 433.1 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.2323, allocations: 3.938 kB / 433.1 MB, free: 5.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.2323, allocations: 8 kB / 433.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-06/0.2323, allocations: 0 / 433.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.302e-05/0.2324, allocations: 61.69 kB / 433.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000234/0.2326, allocations: 216 kB / 433.4 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.2327, allocations: 92.14 kB / 433.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.875e-05/0.2328, allocations: 82.58 kB / 433.6 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.2328, allocations: 4 kB / 433.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.994e-05/0.2329, allocations: 56.27 kB / 433.7 MB, free: 4.516 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.2329, allocations: 0 / 433.7 MB, free: 4.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003491/0.2332, allocations: 274.8 kB / 433.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.2333, allocations: 85.11 kB / 434 MB, free: 4.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.238e-05/0.2334, allocations: 113.8 kB / 434.1 MB, free: 4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.2334, allocations: 25.7 kB / 434.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.07e-05/0.2334, allocations: 88.08 kB / 434.2 MB, free: 3.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.2335, allocations: 15.89 kB / 434.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-05/0.2335, allocations: 21.72 kB / 434.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.2336, allocations: 322.8 kB / 434.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.803e-05/0.2337, allocations: 57.69 kB / 434.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.054e-05/0.2337, allocations: 61.69 kB / 434.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.2339, allocations: 132.5 kB / 434.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2339, allocations: 7.875 kB / 434.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002028/0.2341, allocations: 205 kB / 435 MB, free: 3.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.2341, allocations: 37.7 kB / 435.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.2341, allocations: 0 / 435.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.2341, allocations: 0 / 435.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.639e-05/0.2341, allocations: 3.938 kB / 435.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.2341, allocations: 7.938 kB / 435.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.797e-05/0.2342, allocations: 0 / 435.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.2342, allocations: 7.984 kB / 435.1 MB, free: 2.949 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.0001086/0.2343, allocations: 151.5 kB / 435.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.2343, allocations: 7.953 kB / 435.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.759e-05/0.2343, allocations: 12.36 kB / 435.3 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2343, allocations: 4 kB / 435.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.2343, allocations: 0 / 435.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2343, allocations: 0 / 435.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004104/0.2347, allocations: 440.9 kB / 435.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.2347, allocations: 0 / 435.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-06/0.2347, allocations: 0.5 kB / 435.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.2348, allocations: 7.984 kB / 435.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.2348, allocations: 4 kB / 435.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.2348, allocations: 4 kB / 435.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2348, allocations: 0 / 435.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.2351, allocations: 330.8 kB / 436 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.274e-06/0.2351, allocations: 3.953 kB / 436 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.2351, allocations: 4 kB / 436 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.203e-05/0.2351, allocations: 3.938 kB / 436 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.634e-05/0.2352, allocations: 7.984 kB / 436.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.2352, allocations: 8 kB / 436.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.672e-05/0.2352, allocations: 87.22 kB / 436.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2352, allocations: 0 / 436.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.2354, allocations: 23.92 kB / 436.2 MB, free: 1.762 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.0008602/0.2363, allocations: 0.9626 MB / 437.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002275/0.2365, allocations: 202.7 kB / 437.3 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2365, allocations: 0 / 437.3 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.2366, allocations: 121.1 kB / 437.4 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.2368, allocations: 11.98 kB / 437.5 MB, free: 408 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.2383, allocations: 1.695 MB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.486e-05/0.2384, allocations: 75.17 kB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.979e-06/0.2384, allocations: 0 / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.801e-05/0.2384, allocations: 19.42 kB / 439.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2384, allocations: 0 / 439.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/0.2607, allocations: 2.128 MB / 441.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.64, allocations: 8.75 kB / 441.4 MB, free: 12.41 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.033480348996818]