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.001359/0.001359, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002414/0.002414, allocations: 205.6 kB / 23.72 MB, free: 4.391 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.462/1.462, allocations: 230.5 MB / 257.4 MB, free: 7.754 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 67.89 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2762, allocations: 53.41 MB / 431.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001966/0.2782, allocations: 480.8 kB / 431.6 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003176/0.2785, allocations: 67.02 kB / 431.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.261e-05/0.2785, allocations: 0 / 431.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.802e-05/0.2786, allocations: 3.984 kB / 431.7 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.044e-05/0.2787, allocations: 11.98 kB / 431.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.2788, allocations: 23.92 kB / 431.7 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.2789, allocations: 27.91 kB / 431.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.326e-05/0.279, allocations: 0 / 431.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.719e-05/0.279, allocations: 11.98 kB / 431.7 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.179e-05/0.2791, allocations: 27.91 kB / 431.8 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.2791, allocations: 0 / 431.8 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.365e-05/0.2792, allocations: 8 kB / 431.8 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.596e-05/0.2792, allocations: 11.92 kB / 431.8 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/0.2793, allocations: 11.92 kB / 431.8 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.2794, allocations: 21.61 kB / 431.8 MB, free: 5.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.2794, allocations: 8 kB / 431.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2794, allocations: 0 / 431.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.2794, allocations: 0 / 431.8 MB, free: 5.777 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.0004137/0.2798, allocations: 287.9 kB / 432.1 MB, free: 5.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.2799, allocations: 11.98 kB / 432.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.864e-05/0.2799, allocations: 46.69 kB / 432.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.147e-05/0.28, allocations: 0.9375 kB / 432.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.2801, allocations: 114.4 kB / 432.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.2801, allocations: 4.375 kB / 432.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.365e-05/0.2801, allocations: 8.375 kB / 432.3 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.2803, allocations: 99.92 kB / 432.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.2803, allocations: 11.92 kB / 432.4 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.2803, allocations: 0 / 432.4 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.2803, allocations: 4 kB / 432.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.138e-05/0.2804, allocations: 61.67 kB / 432.4 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003179/0.2807, allocations: 219.9 kB / 432.7 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.2809, allocations: 96.19 kB / 432.8 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.304e-05/0.281, allocations: 70.61 kB / 432.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.281, allocations: 0 / 432.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.179e-05/0.281, allocations: 68.25 kB / 432.9 MB, free: 4.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.281, allocations: 0 / 432.9 MB, free: 4.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004252/0.2815, allocations: 274.6 kB / 433.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.2815, allocations: 81.09 kB / 433.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.2816, allocations: 109.8 kB / 433.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.2817, allocations: 29.7 kB / 433.4 MB, free: 3.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.175e-05/0.2817, allocations: 84.14 kB / 433.5 MB, free: 3.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.589e-05/0.2818, allocations: 20.05 kB / 433.5 MB, free: 3.875 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.2818, allocations: 25.7 kB / 433.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.282, allocations: 314.8 kB / 433.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.678e-05/0.282, allocations: 57.69 kB / 433.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.323e-05/0.2821, allocations: 65.67 kB / 433.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.2822, allocations: 140.1 kB / 434.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2822, allocations: 4 kB / 434.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000218/0.2825, allocations: 201 kB / 434.3 MB, free: 3.023 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.395e-05/0.2825, allocations: 40.19 kB / 434.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.2825, allocations: 0 / 434.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.2825, allocations: 3.938 kB / 434.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.682e-05/0.2825, allocations: 0 / 434.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.2825, allocations: 0 / 434.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.421e-05/0.2826, allocations: 4 kB / 434.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.2826, allocations: 4 kB / 434.3 MB, free: 2.969 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.0001172/0.2827, allocations: 152.1 kB / 434.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.645e-05/0.2827, allocations: 11.95 kB / 434.5 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.318e-05/0.2828, allocations: 8.375 kB / 434.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2828, allocations: 0 / 434.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.2828, allocations: 4 kB / 434.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2828, allocations: 3.938 kB / 434.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004498/0.2832, allocations: 440.9 kB / 434.9 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2832, allocations: 0.5 kB / 434.9 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.803e-06/0.2832, allocations: 0 / 434.9 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2832, allocations: 0 / 434.9 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.2832, allocations: 11.94 kB / 434.9 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.2832, allocations: 3.938 kB / 434.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2832, allocations: 4 kB / 434.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003031/0.2835, allocations: 331.1 kB / 435.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.476e-05/0.2836, allocations: 7.938 kB / 435.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.2836, allocations: 4 kB / 435.3 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.58e-05/0.2836, allocations: 4 kB / 435.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.08e-05/0.2836, allocations: 4 kB / 435.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.2836, allocations: 0 / 435.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.65e-05/0.2837, allocations: 95.27 kB / 435.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2837, allocations: 0 / 435.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.2839, allocations: 8 kB / 435.4 MB, free: 1.789 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.0009928/0.2849, allocations: 0.9797 MB / 436.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002428/0.2852, allocations: 186.8 kB / 436.6 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2852, allocations: 0 / 436.6 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.2853, allocations: 133 kB / 436.7 MB, free: 432 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.2855, allocations: 4 kB / 436.7 MB, free: 428 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.2872, allocations: 1.7 MB / 438.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.882e-05/0.2873, allocations: 75.33 kB / 438.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.366e-05/0.2873, allocations: 0 / 438.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.54e-05/0.2873, allocations: 15.44 kB / 438.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2873, allocations: 0 / 438.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03153/0.3188, allocations: 2.461 MB / 440.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.44, allocations: 11.56 kB / 440.9 MB, free: 12.08 MB / 350.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.9992e-05 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.csv","/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: 14.068365972023457]