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.001598/0.001598, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001954/0.001954, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.355/1.355, allocations: 230.5 MB / 258.2 MB, free: 8.035 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.001846/0.001846, allocations: 67.91 kB / 378.5 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2232, allocations: 53.42 MB / 431.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001355/0.2245, allocations: 480.7 kB / 432.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002289/0.2248, allocations: 67.78 kB / 432.5 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.336e-05/0.2248, allocations: 8 kB / 432.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.38e-05/0.2248, allocations: 0 / 432.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.596e-05/0.2249, allocations: 15.92 kB / 432.5 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001277/0.225, allocations: 15.97 kB / 432.5 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.434e-05/0.2251, allocations: 19.98 kB / 432.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.289e-05/0.2251, allocations: 0 / 432.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.227e-05/0.2252, allocations: 19.97 kB / 432.6 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.671e-05/0.2252, allocations: 23.92 kB / 432.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.2252, allocations: 0 / 432.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.2e-05/0.2253, allocations: 11.92 kB / 432.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.326e-05/0.2253, allocations: 8 kB / 432.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.169e-05/0.2253, allocations: 15.92 kB / 432.6 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.446e-05/0.2254, allocations: 21.05 kB / 432.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2254, allocations: 0 / 432.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2254, allocations: 0 / 432.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.2254, allocations: 0 / 432.6 MB, free: 6.031 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.0003137/0.2257, allocations: 287.7 kB / 432.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.2258, allocations: 12.03 kB / 432.9 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.109e-05/0.2258, allocations: 192 / 432.9 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.9e-05/0.2258, allocations: 50.62 kB / 433 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.272e-05/0.2259, allocations: 8.875 kB / 433 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.535e-05/0.226, allocations: 110.5 kB / 433.1 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.272e-06/0.226, allocations: 384 / 433.1 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.226, allocations: 4.375 kB / 433.1 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.2261, allocations: 77.92 kB / 433.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.2261, allocations: 0 / 433.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.2261, allocations: 4 kB / 433.2 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.2261, allocations: 0 / 433.2 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.034e-05/0.2262, allocations: 31.97 kB / 433.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002262/0.2264, allocations: 224 kB / 433.4 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.867e-05/0.2265, allocations: 70.42 kB / 433.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.321e-05/0.2265, allocations: 48.89 kB / 433.6 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.219e-06/0.2266, allocations: 0 / 433.6 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.986e-05/0.2266, allocations: 64.25 kB / 433.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.01e-07/0.2266, allocations: 0 / 433.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003152/0.2269, allocations: 215.3 kB / 433.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.744e-05/0.227, allocations: 77.11 kB / 433.9 MB, free: 4.598 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.326e-05/0.227, allocations: 113.8 kB / 434 MB, free: 4.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.2271, allocations: 29.7 kB / 434 MB, free: 4.441 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.2271, allocations: 84.14 kB / 434.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.873e-05/0.2271, allocations: 20.03 kB / 434.1 MB, free: 4.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.257e-05/0.2272, allocations: 25.72 kB / 434.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.2273, allocations: 314.8 kB / 434.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.067e-05/0.2273, allocations: 35.98 kB / 434.5 MB, free: 3.953 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.472e-05/0.2274, allocations: 31.98 kB / 434.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.2275, allocations: 132.2 kB / 434.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.2275, allocations: 3.938 kB / 434.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001813/0.2277, allocations: 171.7 kB / 434.8 MB, free: 3.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.2277, allocations: 33.7 kB / 434.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-06/0.2277, allocations: 0 / 434.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.2277, allocations: 3.938 kB / 434.9 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.847e-05/0.2277, allocations: 7.984 kB / 434.9 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2277, allocations: 4 kB / 434.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.761e-05/0.2277, allocations: 4 kB / 434.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.2278, allocations: 4 kB / 434.9 MB, free: 3.531 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.0001019/0.2279, allocations: 151.5 kB / 435 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.2279, allocations: 7.953 kB / 435.1 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.843e-05/0.2279, allocations: 8.375 kB / 435.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.2279, allocations: 0 / 435.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2279, allocations: 0 / 435.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.2279, allocations: 0 / 435.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003966/0.2283, allocations: 431.1 kB / 435.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2283, allocations: 0 / 435.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.199e-06/0.2283, allocations: 0 / 435.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.2283, allocations: 3.984 kB / 435.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.2283, allocations: 4 kB / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2283, allocations: 0 / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.2283, allocations: 0 / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.2286, allocations: 293 kB / 435.8 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.119e-06/0.2286, allocations: 4 kB / 435.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.2286, allocations: 8 kB / 435.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.121e-05/0.2286, allocations: 0 / 435.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.847e-05/0.2287, allocations: 3.984 kB / 435.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.898e-06/0.2287, allocations: 8 kB / 435.8 MB, free: 2.531 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.008e-05/0.2287, allocations: 87.27 kB / 435.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2287, allocations: 0 / 435.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002159/0.2289, allocations: 19.88 kB / 435.9 MB, free: 2.426 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.0007696/0.2297, allocations: 0.9095 MB / 436.8 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001865/0.2299, allocations: 151.3 kB / 437 MB, free: 1.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2299, allocations: 0 / 437 MB, free: 1.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.23, allocations: 95.33 kB / 437.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.2302, allocations: 11.94 kB / 437.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.2316, allocations: 1.553 MB / 438.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.2318, allocations: 0.6846 MB / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.377e-05/0.2319, allocations: 4 kB / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.587e-05/0.2319, allocations: 15.44 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2319, allocations: 0 / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.2525, allocations: 2.092 MB / 441.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.48, allocations: 11.55 kB / 441.4 MB, free: 12.85 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: 12.868011703016236]