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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001507/0.001507, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001666/0.001666, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 67.88 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2408, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001392/0.2422, allocations: 479.8 kB / 409.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002455/0.2425, allocations: 63.78 kB / 409.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.683e-05/0.2425, allocations: 0 / 409.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.772e-05/0.2426, allocations: 7.938 kB / 409.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.517e-05/0.2426, allocations: 11.98 kB / 409.3 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001407/0.2428, allocations: 19.97 kB / 409.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.132e-05/0.2429, allocations: 19.98 kB / 409.3 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.954e-05/0.2429, allocations: 4 kB / 409.3 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.92e-05/0.243, allocations: 15.92 kB / 409.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.233e-05/0.243, allocations: 23.91 kB / 409.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.2431, allocations: 4 kB / 409.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.481e-05/0.2431, allocations: 4 kB / 409.4 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.524e-05/0.2431, allocations: 4 kB / 409.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.973e-05/0.2432, allocations: 15.92 kB / 409.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.491e-05/0.2433, allocations: 27.42 kB / 409.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2433, allocations: 4 kB / 409.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2433, allocations: 0 / 409.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.2433, allocations: 3.938 kB / 409.4 MB, free: 0.875 MB / 318.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.000383/0.2437, allocations: 364.1 kB / 409.8 MB, free: 476 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.2437, allocations: 8.031 kB / 409.8 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.551e-05/0.2438, allocations: 42.7 kB / 409.8 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.2438, allocations: 8.875 kB / 409.8 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.244, allocations: 164.4 kB / 410 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.244, allocations: 4.375 kB / 410 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.21e-05/0.244, allocations: 4.375 kB / 410 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.2442, allocations: 70.17 kB / 410.1 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.2442, allocations: 7.938 kB / 410.1 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.2442, allocations: 7.938 kB / 410.1 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.2442, allocations: 0 / 410.1 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.871e-05/0.2443, allocations: 27.98 kB / 410.1 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003068/0.2446, allocations: 256.8 kB / 410.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.2447, allocations: 74.44 kB / 410.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.922e-05/0.2448, allocations: 60.88 kB / 410.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.2448, allocations: 0 / 410.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.504e-05/0.2449, allocations: 56.27 kB / 410.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.2449, allocations: 4 kB / 410.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003495/0.2452, allocations: 203.3 kB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.2453, allocations: 81.05 kB / 410.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.2454, allocations: 117.8 kB / 411 MB, free: 15.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.2454, allocations: 29.7 kB / 411 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.477e-05/0.2455, allocations: 80.14 kB / 411.1 MB, free: 15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.2455, allocations: 19.86 kB / 411.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.083e-05/0.2455, allocations: 25.7 kB / 411.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2457, allocations: 314.8 kB / 411.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.596e-05/0.2458, allocations: 31.98 kB / 411.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.607e-05/0.2458, allocations: 31.98 kB / 411.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.2459, allocations: 136.8 kB / 411.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2459, allocations: 0 / 411.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002108/0.2462, allocations: 187.2 kB / 411.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.593e-05/0.2462, allocations: 29.7 kB / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2462, allocations: 4 kB / 411.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.2462, allocations: 4 kB / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.061e-05/0.2463, allocations: 0 / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.2463, allocations: 0 / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.34e-05/0.2463, allocations: 3.938 kB / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.2463, allocations: 8 kB / 411.8 MB, free: 14.17 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.0001171/0.2464, allocations: 151.5 kB / 412 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.921e-05/0.2465, allocations: 7.953 kB / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.2465, allocations: 16.36 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2465, allocations: 3.938 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.2465, allocations: 3.984 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2465, allocations: 0 / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000444/0.247, allocations: 436.1 kB / 412.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.247, allocations: 4 kB / 412.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.38e-06/0.247, allocations: 0 / 412.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.247, allocations: 4 kB / 412.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.247, allocations: 4 kB / 412.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.247, allocations: 4 kB / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.247, allocations: 0 / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002652/0.2473, allocations: 289 kB / 412.7 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.2474, allocations: 81.11 kB / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.2474, allocations: 0 / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.393e-05/0.2474, allocations: 4 kB / 412.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.2475, allocations: 7.984 kB / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.2475, allocations: 8 kB / 412.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.913e-05/0.2475, allocations: 83.28 kB / 412.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2475, allocations: 0 / 412.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.2478, allocations: 19.94 kB / 412.9 MB, free: 12.95 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.0008905/0.2487, allocations: 0.9106 MB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00021/0.2489, allocations: 147.3 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2489, allocations: 0 / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.37e-05/0.249, allocations: 107.4 kB / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.2492, allocations: 11.94 kB / 414.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.2507, allocations: 1.551 MB / 415.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.251, allocations: 0.6846 MB / 416.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.932e-05/0.2511, allocations: 7.984 kB / 416.4 MB, free: 9.387 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.964e-05/0.2511, allocations: 15.38 kB / 416.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2511, allocations: 0 / 416.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.2739, allocations: 1.895 MB / 418.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.741/8.015, allocations: 16.55 kB / 418.3 MB, free: 7.555 MB / 334.1 MB (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 4e-05 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) 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) Reference file matches