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.001263/0.001263, allocations: 118.3 kB / 18.49 MB, free: 4.535 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.001408/0.001408, allocations: 222.3 kB / 21.46 MB, free: 1.582 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.372/1.372, allocations: 230.4 MB / 254.7 MB, free: 15.22 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 59.91 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1038, allocations: 53.37 MB / 427 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.00143/0.1052, allocations: 485.2 kB / 427.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002837/0.1055, allocations: 67.8 kB / 427.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.14e-05/0.1055, allocations: 3.938 kB / 427.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.229e-05/0.1056, allocations: 0 / 427.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.888e-05/0.1056, allocations: 15.97 kB / 427.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.1058, allocations: 23.91 kB / 427.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.005e-05/0.1059, allocations: 19.92 kB / 427.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.137e-05/0.1059, allocations: 0 / 427.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.399e-05/0.106, allocations: 15.98 kB / 427.6 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.156e-05/0.106, allocations: 27.95 kB / 427.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.106, allocations: 4 kB / 427.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.109e-05/0.1061, allocations: 11.94 kB / 427.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.721e-05/0.1061, allocations: 0 / 427.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.1061, allocations: 11.94 kB / 427.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.1062, allocations: 23.91 kB / 427.7 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1063, allocations: 0 / 427.7 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1063, allocations: 0 / 427.7 MB, free: 4.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1063, allocations: 7.922 kB / 427.7 MB, free: 4.066 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.0004239/0.1067, allocations: 365 kB / 428.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1067, allocations: 12.03 kB / 428.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.923e-05/0.1067, allocations: 4.188 kB / 428.1 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.378e-05/0.1068, allocations: 42.7 kB / 428.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.769e-05/0.1068, allocations: 4.891 kB / 428.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.107, allocations: 172.3 kB / 428.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.107, allocations: 384 / 428.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.107, allocations: 8.359 kB / 428.3 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.1071, allocations: 69.98 kB / 428.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1071, allocations: 0 / 428.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.1072, allocations: 4 kB / 428.4 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1072, allocations: 4 kB / 428.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.951e-05/0.1072, allocations: 31.98 kB / 428.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003038/0.1075, allocations: 256.8 kB / 428.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.587e-05/0.1076, allocations: 58.5 kB / 428.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.723e-05/0.1077, allocations: 52.89 kB / 428.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.1077, allocations: 0 / 428.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.423e-05/0.1077, allocations: 64.27 kB / 428.9 MB, free: 2.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.82e-07/0.1078, allocations: 3.938 kB / 428.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003645/0.1081, allocations: 207.2 kB / 429.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.1082, allocations: 89.09 kB / 429.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.1083, allocations: 113.9 kB / 429.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.1083, allocations: 25.7 kB / 429.3 MB, free: 2.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.799e-05/0.1084, allocations: 84.14 kB / 429.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.1084, allocations: 19.86 kB / 429.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.552e-05/0.1084, allocations: 25.7 kB / 429.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1086, allocations: 318.8 kB / 429.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.624e-05/0.1086, allocations: 27.98 kB / 429.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.95e-05/0.1087, allocations: 35.98 kB / 429.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.1088, allocations: 128.2 kB / 429.9 MB, free: 1.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.1088, allocations: 7.938 kB / 429.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001918/0.109, allocations: 171.5 kB / 430.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.055e-05/0.1091, allocations: 37.69 kB / 430.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1091, allocations: 0 / 430.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1091, allocations: 0 / 430.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.245e-05/0.1091, allocations: 4 kB / 430.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.1091, allocations: 4 kB / 430.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.51e-05/0.1091, allocations: 7.938 kB / 430.1 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.1091, allocations: 7.938 kB / 430.1 MB, free: 1.363 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.0001117/0.1093, allocations: 148.6 kB / 430.3 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.903e-05/0.1093, allocations: 7.953 kB / 430.3 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.026e-05/0.1093, allocations: 12.31 kB / 430.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1093, allocations: 4 kB / 430.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1093, allocations: 3.984 kB / 430.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.1093, allocations: 4 kB / 430.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004306/0.1098, allocations: 432.2 kB / 430.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1098, allocations: 0 / 430.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.468e-06/0.1098, allocations: 7.984 kB / 430.8 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1098, allocations: 0 / 430.8 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.1098, allocations: 4 kB / 430.8 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1098, allocations: 320 / 430.8 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1098, allocations: 7.938 kB / 430.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.11, allocations: 293.1 kB / 431.1 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.51e-05/0.1101, allocations: 81.11 kB / 431.1 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.1101, allocations: 0 / 431.1 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.544e-05/0.1101, allocations: 8 kB / 431.1 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.1102, allocations: 0 / 431.1 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.1102, allocations: 4.5 kB / 431.1 MB, free: 256 kB / 350.1 MB Notification: Performance of sorting global known variables: time 6.018e-05/0.1102, allocations: 95.27 kB / 431.2 MB, free: 160 kB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1102, allocations: 0 / 431.2 MB, free: 160 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.1104, allocations: 19.88 kB / 431.3 MB, free: 140 kB / 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.0008952/0.1113, allocations: 0.906 MB / 432.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002042/0.1115, allocations: 131.4 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1116, allocations: 4 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.757e-05/0.1117, allocations: 103.3 kB / 432.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.1119, allocations: 4 kB / 432.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.1134, allocations: 1.555 MB / 434 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.1137, allocations: 0.6807 MB / 434.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.25e-05/0.1138, allocations: 0 / 434.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.443e-05/0.1138, allocations: 19.42 kB / 434.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1138, allocations: 0 / 434.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.1327, allocations: 1.958 MB / 436.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.662/7.795, allocations: 15.92 kB / 436.6 MB, free: 10.72 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 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.mat","/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: 10.393533423019107]