Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 123.9 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 185.2 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 225.6 MB / 249.1 MB, free: 3.59 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 43.92 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.09848, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001492/0.09997, allocations: 486.5 kB / 418.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000246/0.1002, allocations: 71.78 kB / 418.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.743e-05/0.1002, allocations: 0 / 418.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.965e-05/0.1003, allocations: 0 / 418.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.795e-05/0.1003, allocations: 15.92 kB / 418.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001501/0.1005, allocations: 19.97 kB / 418.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.949e-05/0.1006, allocations: 19.98 kB / 418.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.841e-05/0.1006, allocations: 3.938 kB / 418.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.276e-05/0.1007, allocations: 15.97 kB / 418.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.648e-05/0.1007, allocations: 19.98 kB / 418.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.1007, allocations: 0 / 418.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.055e-05/0.1008, allocations: 15.98 kB / 418.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.789e-05/0.1008, allocations: 15.86 kB / 418.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.85e-05/0.1008, allocations: 7.938 kB / 418.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.371e-05/0.1009, allocations: 23.86 kB / 418.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.1009, allocations: 4 kB / 418.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1009, allocations: 0 / 418.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1009, allocations: 0 / 418.5 MB, free: 11.91 MB / 350.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.0004007/0.1013, allocations: 365 kB / 418.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.1014, allocations: 12.03 kB / 418.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.412e-05/0.1014, allocations: 42.69 kB / 418.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.464e-05/0.1015, allocations: 8.938 kB / 418.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.1016, allocations: 168.3 kB / 419 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.1016, allocations: 4.375 kB / 419 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.166e-06/0.1016, allocations: 384 / 419 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001328/0.1018, allocations: 74.23 kB / 419.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1018, allocations: 7.875 kB / 419.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.1018, allocations: 4 kB / 419.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1018, allocations: 0 / 419.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.02e-05/0.1018, allocations: 35.97 kB / 419.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002776/0.1021, allocations: 248.9 kB / 419.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001006/0.1022, allocations: 74.41 kB / 419.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.154e-05/0.1023, allocations: 44.91 kB / 419.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.1023, allocations: 3.984 kB / 419.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.482e-05/0.1023, allocations: 56.27 kB / 419.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.1023, allocations: 0 / 419.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003487/0.1027, allocations: 211.5 kB / 419.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.1027, allocations: 85.11 kB / 419.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.26e-05/0.1028, allocations: 113.8 kB / 420 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.1029, allocations: 25.7 kB / 420 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.793e-05/0.1029, allocations: 92.06 kB / 420.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.1029, allocations: 15.86 kB / 420.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.838e-05/0.103, allocations: 25.66 kB / 420.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1031, allocations: 322.8 kB / 420.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.592e-05/0.1032, allocations: 35.98 kB / 420.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.526e-05/0.1032, allocations: 27.98 kB / 420.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.1033, allocations: 132.2 kB / 420.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1033, allocations: 0 / 420.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001968/0.1035, allocations: 167.3 kB / 420.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/0.1036, allocations: 37.69 kB / 420.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.1036, allocations: 4 kB / 420.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.1036, allocations: 0 / 420.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.713e-05/0.1036, allocations: 3.938 kB / 420.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.1036, allocations: 0 / 420.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.844e-05/0.1036, allocations: 15.89 kB / 420.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.1036, allocations: 0 / 420.9 MB, free: 9.211 MB / 350.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.000117/0.1038, allocations: 158.3 kB / 421 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.468e-05/0.1038, allocations: 4 kB / 421 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.974e-05/0.1038, allocations: 8.375 kB / 421 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1038, allocations: 0 / 421 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1038, allocations: 0 / 421 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1038, allocations: 0 / 421 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004407/0.1043, allocations: 452.3 kB / 421.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1043, allocations: 4 kB / 421.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.741e-06/0.1043, allocations: 0.5 kB / 421.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1043, allocations: 0 / 421.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.1043, allocations: 4 kB / 421.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1043, allocations: 0 / 421.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1043, allocations: 4 kB / 421.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002815/0.1046, allocations: 293.1 kB / 421.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.1046, allocations: 85.05 kB / 421.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.1046, allocations: 8 kB / 421.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.179e-05/0.1047, allocations: 3.938 kB / 421.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.556e-05/0.1047, allocations: 4 kB / 421.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.1047, allocations: 0 / 421.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.986e-05/0.1047, allocations: 91.27 kB / 422 MB, free: 8 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1047, allocations: 0 / 422 MB, free: 8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.105, allocations: 15.94 kB / 422 MB, free: 7.984 MB / 350.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.0008764/0.1058, allocations: 0.9082 MB / 422.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001969/0.106, allocations: 143.3 kB / 423 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.106, allocations: 0 / 423 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.645e-05/0.1061, allocations: 91.39 kB / 423.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.1063, allocations: 14.41 kB / 423.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.1078, allocations: 1.558 MB / 424.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.1081, allocations: 0.6883 MB / 425.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.118e-05/0.1081, allocations: 4 kB / 425.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.513e-05/0.1081, allocations: 11.44 kB / 425.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1081, allocations: 0 / 425.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.1317, allocations: 1.929 MB / 427.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/7.71, allocations: 14.28 kB / 427.3 MB, free: 2.59 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 10.031378439161927]