Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 112.5 kB / 21.22 MB, free: 0.7461 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 213.1 kB / 24.53 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.34/1.34, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 47.86 kB / 378.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2233, allocations: 53.35 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001431/0.2247, allocations: 494.5 kB / 432.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002288/0.2249, allocations: 63.8 kB / 432.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.501e-05/0.225, allocations: 7.938 kB / 432.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.54e-05/0.225, allocations: 0 / 432.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.096e-05/0.225, allocations: 15.97 kB / 432.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001389/0.2252, allocations: 19.92 kB / 432.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.323e-05/0.2253, allocations: 23.97 kB / 432.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.497e-05/0.2253, allocations: 0 / 432.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.019e-05/0.2253, allocations: 15.92 kB / 432.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.85e-05/0.2254, allocations: 27.95 kB / 432.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.2254, allocations: 0 / 432.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.365e-05/0.2254, allocations: 4 kB / 432.5 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.475e-05/0.2255, allocations: 11.12 kB / 432.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.2255, allocations: 15.88 kB / 432.6 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.116e-05/0.2256, allocations: 23.91 kB / 432.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2256, allocations: 3.938 kB / 432.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2256, allocations: 0 / 432.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.309e-06/0.2256, allocations: 0 / 432.6 MB, free: 6.168 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.0003191/0.2259, allocations: 292.3 kB / 432.9 MB, free: 5.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.2259, allocations: 12.03 kB / 432.9 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.303e-05/0.226, allocations: 192 / 432.9 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.988e-05/0.226, allocations: 42.7 kB / 432.9 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.288e-05/0.226, allocations: 4.938 kB / 432.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.2261, allocations: 118.4 kB / 433.1 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.108e-06/0.2261, allocations: 384 / 433.1 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.2262, allocations: 8.375 kB / 433.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.2263, allocations: 69.98 kB / 433.1 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.2263, allocations: 4 kB / 433.1 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.014e-06/0.2263, allocations: 0 / 433.1 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.2263, allocations: 0 / 433.1 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.742e-05/0.2263, allocations: 27.98 kB / 433.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002338/0.2266, allocations: 227.9 kB / 433.4 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.085e-05/0.2267, allocations: 66.5 kB / 433.5 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.738e-05/0.2267, allocations: 49.03 kB / 433.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.036e-06/0.2267, allocations: 4 kB / 433.5 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/0.2268, allocations: 60.25 kB / 433.6 MB, free: 5.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.2268, allocations: 0 / 433.6 MB, free: 5.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000322/0.2271, allocations: 215.2 kB / 433.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.2272, allocations: 81.11 kB / 433.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.286e-05/0.2273, allocations: 113.8 kB / 434 MB, free: 4.617 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.2273, allocations: 29.7 kB / 434 MB, free: 4.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.2273, allocations: 84.14 kB / 434.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.569e-05/0.2273, allocations: 15.91 kB / 434.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-05/0.2274, allocations: 25.7 kB / 434.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2275, allocations: 310.8 kB / 434.4 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.276e-05/0.2276, allocations: 39.98 kB / 434.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.575e-05/0.2276, allocations: 27.98 kB / 434.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.2277, allocations: 140.1 kB / 434.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.2277, allocations: 3.938 kB / 434.6 MB, free: 3.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001974/0.2279, allocations: 175.7 kB / 434.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.228, allocations: 33.69 kB / 434.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.115e-06/0.228, allocations: 0 / 434.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.228, allocations: 4 kB / 434.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.581e-05/0.228, allocations: 4.062 kB / 434.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.228, allocations: 0 / 434.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.858e-05/0.228, allocations: 4 kB / 434.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.228, allocations: 4 kB / 434.8 MB, free: 3.676 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.0001097/0.2281, allocations: 155.4 kB / 435 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.2282, allocations: 7.953 kB / 435 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.049e-05/0.2282, allocations: 12.38 kB / 435 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.2282, allocations: 0 / 435 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.2282, allocations: 0 / 435 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.2282, allocations: 0 / 435 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000406/0.2286, allocations: 415.2 kB / 435.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.2286, allocations: 4 kB / 435.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.571e-06/0.2286, allocations: 0 / 435.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.2286, allocations: 0 / 435.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.2286, allocations: 7.984 kB / 435.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.2286, allocations: 4.297 kB / 435.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2286, allocations: 7.875 kB / 435.4 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.2289, allocations: 297.1 kB / 435.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-06/0.2289, allocations: 0 / 435.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.2289, allocations: 8 kB / 435.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.191e-05/0.2289, allocations: 0 / 435.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.773e-05/0.2289, allocations: 4 kB / 435.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.229, allocations: 4 kB / 435.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.821e-05/0.229, allocations: 91.27 kB / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.229, allocations: 0 / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00022/0.2292, allocations: 15.94 kB / 435.9 MB, free: 2.566 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.0008223/0.2301, allocations: 0.9123 MB / 436.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000181/0.2302, allocations: 143.3 kB / 436.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2302, allocations: 0 / 436.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.129e-05/0.2303, allocations: 99.31 kB / 437 MB, free: 1.375 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.2305, allocations: 10.66 kB / 437 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.2319, allocations: 1.555 MB / 438.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.2323, allocations: 0.6846 MB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.071e-05/0.2323, allocations: 0 / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.503e-05/0.2323, allocations: 11.44 kB / 439.3 MB, free: 15 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2323, allocations: 0 / 439.3 MB, free: 15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.2545, allocations: 2.085 MB / 441.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/10.42, allocations: 19.5 kB / 441.4 MB, free: 13.02 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.779919836029876]