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.001813/0.001813, allocations: 114 kB / 20.43 MB, free: 1.457 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.002295/0.002295, allocations: 213.1 kB / 23.74 MB, free: 4.672 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.47/1.47, allocations: 230.5 MB / 257.4 MB, free: 7.988 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.001904/0.001904, allocations: 64.08 kB / 377.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2497, allocations: 53.41 MB / 431.2 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001572/0.2513, allocations: 492.7 kB / 431.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002473/0.2515, allocations: 59.81 kB / 431.7 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.978e-05/0.2515, allocations: 0 / 431.7 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.587e-05/0.2516, allocations: 7.922 kB / 431.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.707e-05/0.2516, allocations: 11.98 kB / 431.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001487/0.2518, allocations: 23.91 kB / 431.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.373e-05/0.2519, allocations: 23.97 kB / 431.8 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.864e-05/0.2519, allocations: 0 / 431.8 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.391e-05/0.252, allocations: 15.98 kB / 431.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.862e-05/0.252, allocations: 27.91 kB / 431.8 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.252, allocations: 0 / 431.8 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.695e-05/0.2521, allocations: 4 kB / 431.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.993e-05/0.2521, allocations: 11.98 kB / 431.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.969e-05/0.2521, allocations: 7.938 kB / 431.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.887e-05/0.2522, allocations: 23.91 kB / 431.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2522, allocations: 0 / 431.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2522, allocations: 0 / 431.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.2522, allocations: 0 / 431.9 MB, free: 6.129 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.0003329/0.2526, allocations: 296.3 kB / 432.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.2526, allocations: 12.03 kB / 432.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.348e-05/0.2527, allocations: 42.69 kB / 432.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.631e-05/0.2527, allocations: 4.938 kB / 432.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.2528, allocations: 118.4 kB / 432.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.2528, allocations: 384 / 432.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.2528, allocations: 8.359 kB / 432.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.253, allocations: 70.23 kB / 432.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.253, allocations: 3.938 kB / 432.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.253, allocations: 4 kB / 432.4 MB, free: 5.508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.253, allocations: 4 kB / 432.4 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.85e-05/0.253, allocations: 27.98 kB / 432.4 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002434/0.2533, allocations: 223.9 kB / 432.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.748e-05/0.2534, allocations: 66.48 kB / 432.7 MB, free: 5.141 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.178e-05/0.2534, allocations: 44.91 kB / 432.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-06/0.2534, allocations: 0 / 432.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.314e-05/0.2535, allocations: 64.27 kB / 432.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.21e-07/0.2535, allocations: 0 / 432.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003294/0.2538, allocations: 219.4 kB / 433 MB, free: 4.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.2539, allocations: 81.11 kB / 433.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.775e-05/0.254, allocations: 109.8 kB / 433.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.254, allocations: 25.7 kB / 433.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.563e-05/0.254, allocations: 88.14 kB / 433.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.2541, allocations: 11.91 kB / 433.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.246e-05/0.2541, allocations: 33.7 kB / 433.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.2542, allocations: 310.8 kB / 433.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.915e-05/0.2543, allocations: 35.97 kB / 433.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.839e-05/0.2543, allocations: 31.98 kB / 433.7 MB, free: 4.023 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001194/0.2544, allocations: 132.2 kB / 433.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2544, allocations: 0 / 433.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001965/0.2546, allocations: 179.1 kB / 434.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.2547, allocations: 33.7 kB / 434.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.2547, allocations: 0 / 434.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.2547, allocations: 4 kB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.695e-05/0.2547, allocations: 4.438 kB / 434.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.83e-06/0.2547, allocations: 0 / 434.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.179e-05/0.2547, allocations: 3.984 kB / 434.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.2547, allocations: 4 kB / 434.1 MB, free: 3.637 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.0001069/0.2548, allocations: 154.8 kB / 434.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.2549, allocations: 15.94 kB / 434.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.574e-05/0.2549, allocations: 8.375 kB / 434.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.2549, allocations: 4 kB / 434.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2549, allocations: 7.938 kB / 434.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.2549, allocations: 0 / 434.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004141/0.2553, allocations: 407.5 kB / 434.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2553, allocations: 4 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.871e-06/0.2553, allocations: 0 / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2553, allocations: 0 / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.2553, allocations: 4 kB / 434.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.2553, allocations: 3.984 kB / 434.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2553, allocations: 0 / 434.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002586/0.2556, allocations: 305 kB / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.554e-06/0.2556, allocations: 4 kB / 435 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.2556, allocations: 0 / 435 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.349e-05/0.2557, allocations: 4 kB / 435 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.893e-05/0.2557, allocations: 3.984 kB / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.2557, allocations: 8 kB / 435 MB, free: 2.629 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.53e-05/0.2557, allocations: 83.28 kB / 435.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2557, allocations: 0 / 435.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000227/0.256, allocations: 23.98 kB / 435.1 MB, free: 2.523 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.0007935/0.2568, allocations: 0.9122 MB / 436 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001909/0.257, allocations: 143.7 kB / 436.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.257, allocations: 4 kB / 436.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.475e-05/0.257, allocations: 99.44 kB / 436.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.2572, allocations: 4 kB / 436.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.2586, allocations: 1.551 MB / 437.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.259, allocations: 0.6885 MB / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.299e-05/0.259, allocations: 0 / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.259, allocations: 15.44 kB / 438.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.259, allocations: 0 / 438.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02567/0.2847, allocations: 2.058 MB / 440.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.2, allocations: 15.53 kB / 440.6 MB, free: 12.98 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.757972709001479]