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.001593/0.001593, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001976/0.001976, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.84 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2489, allocations: 50.54 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001735/0.2507, allocations: 484.5 kB / 409.2 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002456/0.251, allocations: 63.78 kB / 409.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.948e-05/0.251, allocations: 0 / 409.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.577e-05/0.2511, allocations: 0 / 409.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.88e-05/0.2511, allocations: 11.98 kB / 409.3 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001534/0.2513, allocations: 23.91 kB / 409.3 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.053e-05/0.2514, allocations: 19.98 kB / 409.3 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.459e-05/0.2515, allocations: 4 kB / 409.3 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.685e-05/0.2515, allocations: 15.98 kB / 409.3 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.2516, allocations: 23.91 kB / 409.4 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.2516, allocations: 0 / 409.4 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.245e-05/0.2516, allocations: 12 kB / 409.4 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.378e-05/0.2517, allocations: 7.984 kB / 409.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.531e-05/0.2517, allocations: 3.938 kB / 409.4 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.893e-05/0.2518, allocations: 27.42 kB / 409.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.2518, allocations: 4 kB / 409.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2518, allocations: 4 kB / 409.4 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.2519, allocations: 0 / 409.4 MB, free: 0.8711 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.0003637/0.2522, allocations: 368 kB / 409.8 MB, free: 468 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.2523, allocations: 8.031 kB / 409.8 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.777e-05/0.2523, allocations: 46.69 kB / 409.8 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.662e-05/0.2524, allocations: 4.891 kB / 409.8 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.973e-05/0.2525, allocations: 168.3 kB / 410 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.2525, allocations: 384 / 410 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.2525, allocations: 8.312 kB / 410 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.2526, allocations: 70.23 kB / 410.1 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.2527, allocations: 3.938 kB / 410.1 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.2527, allocations: 8 kB / 410.1 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.2527, allocations: 0 / 410.1 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.54e-05/0.2527, allocations: 31.92 kB / 410.1 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003341/0.2531, allocations: 256.8 kB / 410.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.916e-05/0.2532, allocations: 70.48 kB / 410.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.883e-05/0.2533, allocations: 52.91 kB / 410.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.2533, allocations: 3.984 kB / 410.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/0.2533, allocations: 72.19 kB / 410.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.2533, allocations: 0 / 410.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003074/0.2536, allocations: 207.3 kB / 410.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/0.2537, allocations: 77.11 kB / 410.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.583e-05/0.2538, allocations: 109.8 kB / 410.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.2538, allocations: 29.7 kB / 411 MB, free: 15.08 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.254, allocations: 84.14 kB / 411.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.254, allocations: 19.84 kB / 411.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.876e-05/0.2541, allocations: 25.72 kB / 411.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2542, allocations: 318.8 kB / 411.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.918e-05/0.2543, allocations: 27.98 kB / 411.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.563e-05/0.2543, allocations: 39.92 kB / 411.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002188/0.2545, allocations: 136.7 kB / 411.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2545, allocations: 0 / 411.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002359/0.2548, allocations: 175.2 kB / 411.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.2548, allocations: 33.7 kB / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.2548, allocations: 0 / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2549, allocations: 4 kB / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.129e-05/0.2549, allocations: 11.98 kB / 411.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.2549, allocations: 0 / 411.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.177e-05/0.2549, allocations: 3.938 kB / 411.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.2549, allocations: 4 kB / 411.8 MB, free: 14.16 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.0001027/0.255, allocations: 159.3 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.2551, allocations: 7.953 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.924e-05/0.2551, allocations: 8.375 kB / 412 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2551, allocations: 0 / 412 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2551, allocations: 4 kB / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.2551, allocations: 0 / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003837/0.2555, allocations: 432.2 kB / 412.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.2555, allocations: 3.938 kB / 412.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.284e-06/0.2555, allocations: 7.938 kB / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2555, allocations: 0 / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2556, allocations: 4 kB / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.2556, allocations: 4 kB / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2556, allocations: 0 / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.2558, allocations: 289.6 kB / 412.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.046e-05/0.2559, allocations: 77.11 kB / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.2559, allocations: 4 kB / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.81e-05/0.2559, allocations: 64 / 412.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.691e-05/0.256, allocations: 15.98 kB / 412.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-06/0.256, allocations: 4 kB / 412.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.167e-05/0.256, allocations: 91.27 kB / 412.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.256, allocations: 0 / 412.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002506/0.2563, allocations: 15.94 kB / 412.9 MB, free: 12.93 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.0007386/0.257, allocations: 0.8984 MB / 413.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001896/0.2572, allocations: 155.2 kB / 414 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2573, allocations: 0 / 414 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.886e-05/0.2573, allocations: 99.39 kB / 414.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002002/0.2575, allocations: 11.94 kB / 414.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.2589, allocations: 1.561 MB / 415.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.2592, allocations: 0.6846 MB / 416.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.479e-05/0.2592, allocations: 4 kB / 416.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.845e-05/0.2593, allocations: 11.44 kB / 416.4 MB, free: 9.363 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2593, allocations: 0 / 416.4 MB, free: 9.363 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.278, allocations: 1.912 MB / 418.3 MB, free: 7.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.369/7.647, allocations: 12.55 kB / 418.3 MB, free: 7.539 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.0.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