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.001275/0.001275, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.001349/0.001349, allocations: 186.2 kB / 23.7 MB, free: 4.188 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.366/1.366, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.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.001783/0.001783, allocations: 51.92 kB / 370.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2645, allocations: 52.17 MB / 422.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002062/0.2666, allocations: 496.2 kB / 423 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003392/0.2669, allocations: 67.8 kB / 423.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.229e-05/0.267, allocations: 0 / 423.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.846e-05/0.267, allocations: 0 / 423.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.936e-05/0.2671, allocations: 15.92 kB / 423.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001838/0.2673, allocations: 19.97 kB / 423.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.641e-05/0.2674, allocations: 23.97 kB / 423.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.564e-05/0.2674, allocations: 0 / 423.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.828e-05/0.2675, allocations: 11.98 kB / 423.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.546e-05/0.2676, allocations: 39.83 kB / 423.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.853e-05/0.2676, allocations: 0 / 423.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.792e-05/0.2676, allocations: 4 kB / 423.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.301e-05/0.2677, allocations: 8 kB / 423.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.2677, allocations: 7.938 kB / 423.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.2678, allocations: 27.91 kB / 423.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2678, allocations: 0 / 423.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2678, allocations: 0 / 423.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.2678, allocations: 0 / 423.2 MB, free: 13.71 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.000422/0.2682, allocations: 303 kB / 423.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.2683, allocations: 8.031 kB / 423.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.576e-05/0.2684, allocations: 34.75 kB / 423.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.264e-05/0.2684, allocations: 4.891 kB / 423.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.2685, allocations: 110.5 kB / 423.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.2685, allocations: 8.375 kB / 423.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.2685, allocations: 8.359 kB / 423.7 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.2687, allocations: 99.88 kB / 423.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.2688, allocations: 3.938 kB / 423.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.2688, allocations: 0 / 423.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.2688, allocations: 3.984 kB / 423.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.708e-05/0.2689, allocations: 61.69 kB / 423.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003177/0.2692, allocations: 216 kB / 424.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.2694, allocations: 104.1 kB / 424.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.2695, allocations: 74.59 kB / 424.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.572e-06/0.2695, allocations: 4 kB / 424.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.39e-05/0.2696, allocations: 68.27 kB / 424.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.2696, allocations: 0 / 424.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005458/0.2701, allocations: 274.8 kB / 424.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.2702, allocations: 85.05 kB / 424.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.2703, allocations: 109.8 kB / 424.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.2703, allocations: 37.64 kB / 424.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.569e-05/0.2704, allocations: 80.14 kB / 424.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.2704, allocations: 19.89 kB / 424.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-05/0.2705, allocations: 21.72 kB / 424.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.2707, allocations: 314.8 kB / 425.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.348e-05/0.2707, allocations: 65.69 kB / 425.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.429e-05/0.2708, allocations: 61.69 kB / 425.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.271, allocations: 132.2 kB / 425.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2711, allocations: 0 / 425.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003497/0.2714, allocations: 208.9 kB / 425.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/0.2714, allocations: 29.7 kB / 425.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2715, allocations: 4 kB / 425.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.2715, allocations: 0 / 425.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.699e-05/0.2715, allocations: 0 / 425.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.2715, allocations: 0 / 425.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.417e-05/0.2715, allocations: 4 kB / 425.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.2715, allocations: 8 kB / 425.8 MB, free: 10.89 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.0001561/0.2717, allocations: 155.4 kB / 425.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.08e-05/0.2717, allocations: 7.953 kB / 425.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.2718, allocations: 12.36 kB / 425.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2718, allocations: 0 / 425.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2718, allocations: 0 / 425.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2718, allocations: 0 / 425.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006961/0.2725, allocations: 444.9 kB / 426.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2725, allocations: 0 / 426.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.284e-06/0.2725, allocations: 0 / 426.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2725, allocations: 4 kB / 426.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.2725, allocations: 7.984 kB / 426.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2725, allocations: 0 / 426.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2725, allocations: 0 / 426.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004517/0.273, allocations: 327.6 kB / 426.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.433e-05/0.273, allocations: 7.953 kB / 426.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.273, allocations: 8 kB / 426.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.889e-05/0.2731, allocations: 0 / 426.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.965e-05/0.2731, allocations: 3.984 kB / 426.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.2731, allocations: 8 kB / 426.7 MB, free: 9.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.627e-05/0.2732, allocations: 87.28 kB / 426.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2732, allocations: 4 kB / 426.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004195/0.2736, allocations: 15.98 kB / 426.8 MB, free: 9.715 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.001249/0.2749, allocations: 0.9673 MB / 427.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003232/0.2752, allocations: 202.7 kB / 428 MB, free: 8.492 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2752, allocations: 0 / 428 MB, free: 8.492 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.2754, allocations: 125.1 kB / 428.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.2757, allocations: 10.66 kB / 428.1 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.278, allocations: 1.702 MB / 429.8 MB, free: 6.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.135e-05/0.2781, allocations: 71.2 kB / 429.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.367e-05/0.2781, allocations: 0 / 429.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.359e-05/0.2781, allocations: 23.36 kB / 429.9 MB, free: 6.418 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2781, allocations: 0 / 429.9 MB, free: 6.418 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02777/0.3059, allocations: 2.449 MB / 432.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.79, allocations: 4.062 kB / 432.4 MB, free: 4.043 MB / 334.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 13.142930556088686]