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.001204/0.001204, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.00135/0.00135, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.332/1.332, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.001417/0.001417, allocations: 51.92 kB / 378.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2346, allocations: 53.36 MB / 431.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001413/0.236, allocations: 484.8 kB / 432.3 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002337/0.2363, allocations: 63.03 kB / 432.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.659e-05/0.2363, allocations: 0 / 432.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.814e-05/0.2363, allocations: 3.938 kB / 432.4 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.118e-05/0.2364, allocations: 19.97 kB / 432.4 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001381/0.2365, allocations: 19.92 kB / 432.4 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.582e-05/0.2366, allocations: 23.92 kB / 432.4 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.153e-05/0.2366, allocations: 0 / 432.4 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.141e-05/0.2366, allocations: 15.97 kB / 432.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.509e-05/0.2367, allocations: 23.97 kB / 432.5 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.2367, allocations: 0 / 432.5 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.627e-05/0.2368, allocations: 4 kB / 432.5 MB, free: 6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.691e-05/0.2368, allocations: 15.92 kB / 432.5 MB, free: 5.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.233e-05/0.2368, allocations: 15.86 kB / 432.5 MB, free: 5.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.138e-05/0.2369, allocations: 18.09 kB / 432.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2369, allocations: 4 kB / 432.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2369, allocations: 3.938 kB / 432.5 MB, free: 5.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.952e-06/0.2369, allocations: 4 kB / 432.5 MB, free: 5.941 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.0003133/0.2372, allocations: 287.9 kB / 432.8 MB, free: 5.621 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.2373, allocations: 8.031 kB / 432.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.448e-05/0.2373, allocations: 192 / 432.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.2373, allocations: 46.69 kB / 432.9 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.674e-05/0.2374, allocations: 8.922 kB / 432.9 MB, free: 5.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.727e-05/0.2375, allocations: 114.4 kB / 433 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.2375, allocations: 4.375 kB / 433 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.2375, allocations: 8.375 kB / 433 MB, free: 5.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.2376, allocations: 99.69 kB / 433.1 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2376, allocations: 0 / 433.1 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.2376, allocations: 4 kB / 433.1 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.2376, allocations: 0 / 433.1 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.03e-05/0.2377, allocations: 61.69 kB / 433.2 MB, free: 5.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002395/0.2379, allocations: 223.9 kB / 433.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.2381, allocations: 84.2 kB / 433.5 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.903e-05/0.2381, allocations: 82.59 kB / 433.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.946e-06/0.2381, allocations: 0 / 433.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.323e-05/0.2382, allocations: 56.27 kB / 433.6 MB, free: 4.703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.51e-07/0.2382, allocations: 4 kB / 433.6 MB, free: 4.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003581/0.2386, allocations: 278.8 kB / 433.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.2386, allocations: 81.11 kB / 434 MB, free: 4.305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.469e-05/0.2387, allocations: 121.9 kB / 434.1 MB, free: 4.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.2387, allocations: 25.7 kB / 434.1 MB, free: 4.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.43e-05/0.2388, allocations: 84.14 kB / 434.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.2388, allocations: 11.91 kB / 434.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.838e-05/0.2388, allocations: 25.7 kB / 434.2 MB, free: 4.016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.239, allocations: 318.8 kB / 434.5 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.888e-05/0.239, allocations: 61.69 kB / 434.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.62e-05/0.2391, allocations: 61.69 kB / 434.6 MB, free: 3.562 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001252/0.2392, allocations: 136.2 kB / 434.8 MB, free: 3.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2392, allocations: 3.938 kB / 434.8 MB, free: 3.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002178/0.2394, allocations: 204.9 kB / 435 MB, free: 3.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.2395, allocations: 33.7 kB / 435 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.2395, allocations: 0 / 435 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.2395, allocations: 3.984 kB / 435 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.635e-05/0.2395, allocations: 0 / 435 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.2395, allocations: 4 kB / 435 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.904e-05/0.2395, allocations: 3.938 kB / 435 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.2395, allocations: 4 kB / 435 MB, free: 3.137 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.0001217/0.2397, allocations: 161.8 kB / 435.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.2397, allocations: 7.953 kB / 435.2 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.047e-05/0.2397, allocations: 8.375 kB / 435.2 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-06/0.2397, allocations: 4 kB / 435.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2397, allocations: 0 / 435.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.2397, allocations: 0 / 435.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004317/0.2402, allocations: 448.9 kB / 435.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2402, allocations: 0 / 435.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.197e-06/0.2402, allocations: 4 kB / 435.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2402, allocations: 0 / 435.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.2402, allocations: 0 / 435.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2402, allocations: 4 kB / 435.7 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2402, allocations: 4.312 kB / 435.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002887/0.2405, allocations: 330.7 kB / 436 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.885e-06/0.2405, allocations: 3.953 kB / 436 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.2405, allocations: 4 kB / 436 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.319e-05/0.2405, allocations: 3.984 kB / 436 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.037e-05/0.2406, allocations: 8 kB / 436 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.2406, allocations: 4.5 kB / 436 MB, free: 2.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.305e-05/0.2406, allocations: 91.27 kB / 436.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2406, allocations: 0 / 436.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002248/0.2408, allocations: 23.94 kB / 436.1 MB, free: 1.941 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.0009276/0.2418, allocations: 0.9642 MB / 437.1 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002421/0.242, allocations: 198.8 kB / 437.3 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.242, allocations: 0 / 437.3 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.2421, allocations: 125 kB / 437.4 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002087/0.2423, allocations: 8 kB / 437.4 MB, free: 0.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.244, allocations: 1.71 MB / 439.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.196e-05/0.244, allocations: 71.33 kB / 439.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.212e-05/0.244, allocations: 0 / 439.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.042e-05/0.2441, allocations: 15.44 kB / 439.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2441, allocations: 0 / 439.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.266, allocations: 2.118 MB / 441.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.37/10.63, allocations: 7.922 kB / 441.3 MB, free: 12.62 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: 13.004159284988418]