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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 191.5 kB / 24.5 MB, free: 4.09 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 43.94 kB / 371.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2201, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001506/0.2216, allocations: 0.4925 MB / 423.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002259/0.2218, allocations: 59.8 kB / 423.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.647e-05/0.2219, allocations: 0 / 423.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.746e-05/0.2219, allocations: 3.984 kB / 423.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.22e-05/0.222, allocations: 11.98 kB / 424 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.2221, allocations: 23.91 kB / 424 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.379e-05/0.2222, allocations: 23.98 kB / 424 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.35e-05/0.2222, allocations: 0 / 424 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.175e-05/0.2223, allocations: 11.98 kB / 424 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.652e-05/0.2223, allocations: 31.91 kB / 424 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.376e-05/0.2223, allocations: 0 / 424 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.749e-05/0.2224, allocations: 4 kB / 424 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.531e-05/0.2224, allocations: 7.984 kB / 424.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.2225, allocations: 7.938 kB / 424.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.328e-05/0.2225, allocations: 29.03 kB / 424.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2226, allocations: 0 / 424.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2226, allocations: 4 kB / 424.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.2226, allocations: 0 / 424.1 MB, free: 13.91 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.0003267/0.2229, allocations: 295.6 kB / 424.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.2229, allocations: 8.031 kB / 424.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.65e-05/0.2229, allocations: 4.188 kB / 424.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.784e-05/0.223, allocations: 38.73 kB / 424.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.771e-05/0.223, allocations: 8.891 kB / 424.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.2231, allocations: 114.4 kB / 424.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.2231, allocations: 4.375 kB / 424.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.2231, allocations: 4.375 kB / 424.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.2233, allocations: 81.86 kB / 424.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.2233, allocations: 0 / 424.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.2233, allocations: 0 / 424.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.2233, allocations: 0 / 424.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.542e-05/0.2233, allocations: 31.98 kB / 424.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002689/0.2236, allocations: 227.9 kB / 424.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.643e-05/0.2237, allocations: 70.48 kB / 425 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.09e-05/0.2238, allocations: 48.91 kB / 425 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.13e-06/0.2238, allocations: 0 / 425 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.2238, allocations: 56.27 kB / 425.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.31e-07/0.2238, allocations: 0 / 425.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000324/0.2241, allocations: 215.2 kB / 425.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.2242, allocations: 81.11 kB / 425.4 MB, free: 12.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.81e-05/0.2243, allocations: 113.8 kB / 425.5 MB, free: 12.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.2243, allocations: 29.7 kB / 425.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.037e-05/0.2243, allocations: 84.14 kB / 425.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.2244, allocations: 11.91 kB / 425.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.2244, allocations: 25.7 kB / 425.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.2245, allocations: 322.8 kB / 425.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.407e-05/0.2246, allocations: 27.98 kB / 426 MB, free: 11.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.31e-05/0.2247, allocations: 31.98 kB / 426 MB, free: 11.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.2248, allocations: 140.3 kB / 426.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.2248, allocations: 7.938 kB / 426.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001859/0.225, allocations: 171.6 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.225, allocations: 29.7 kB / 426.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.225, allocations: 7.984 kB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.225, allocations: 0 / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.575e-05/0.225, allocations: 4 kB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.225, allocations: 7.969 kB / 426.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.24e-05/0.2251, allocations: 4.438 kB / 426.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.2251, allocations: 0 / 426.4 MB, free: 11.41 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.0001067/0.2252, allocations: 151.5 kB / 426.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/0.2252, allocations: 11.94 kB / 426.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.805e-05/0.2252, allocations: 12.31 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.2252, allocations: 0 / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2252, allocations: 4 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.2252, allocations: 0 / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003955/0.2256, allocations: 419.2 kB / 426.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2256, allocations: 0 / 426.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.99e-06/0.2256, allocations: 0 / 426.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.2256, allocations: 3.938 kB / 426.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.2257, allocations: 8 kB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2257, allocations: 3.938 kB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2257, allocations: 0 / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002467/0.2259, allocations: 285.1 kB / 427.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.013e-05/0.2259, allocations: 7.953 kB / 427.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.2259, allocations: 4 kB / 427.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.081e-05/0.226, allocations: 0 / 427.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.226, allocations: 7.984 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.226, allocations: 4 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.223e-05/0.2261, allocations: 95.27 kB / 427.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2261, allocations: 0 / 427.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002141/0.2263, allocations: 15.94 kB / 427.4 MB, free: 10.3 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.000846/0.2271, allocations: 0.8982 MB / 428.3 MB, free: 9.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001891/0.2273, allocations: 135.8 kB / 428.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2273, allocations: 3.938 kB / 428.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.2274, allocations: 99.31 kB / 428.5 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.2277, allocations: 8 kB / 428.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.2291, allocations: 1.553 MB / 430.1 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.2294, allocations: 0.6961 MB / 430.8 MB, free: 6.762 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.042e-05/0.2294, allocations: 0 / 430.8 MB, free: 6.762 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.83e-05/0.2295, allocations: 23.38 kB / 430.8 MB, free: 6.738 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2295, allocations: 0 / 430.8 MB, free: 6.738 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.2504, allocations: 2.095 MB / 432.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.14/10.39, allocations: 4.062 kB / 432.9 MB, free: 4.762 MB / 334.1 MB " [Timeout remaining time 649] (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 --stepSize=1.9992e-05 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.711693904013373]