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.001333/0.001333, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001469/0.001469, allocations: 184.4 kB / 23.72 MB, free: 4.699 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.372/1.372, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001523/0.001523, allocations: 43.94 kB / 370.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2522, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001482/0.2537, allocations: 0.4886 MB / 423.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002213/0.2539, allocations: 59.81 kB / 423.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.652e-05/0.2539, allocations: 0 / 423.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.299e-05/0.254, allocations: 3.938 kB / 423.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.943e-05/0.254, allocations: 19.95 kB / 423.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001344/0.2542, allocations: 23.92 kB / 423.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.339e-05/0.2542, allocations: 15.98 kB / 423.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.218e-05/0.2543, allocations: 7.984 kB / 423.2 MB, free: 14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.847e-05/0.2543, allocations: 8 kB / 423.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.909e-05/0.2544, allocations: 35.89 kB / 423.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.2544, allocations: 0 / 423.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.253e-05/0.2544, allocations: 4 kB / 423.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.2544, allocations: 7.984 kB / 423.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.555e-05/0.2545, allocations: 7.938 kB / 423.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.441e-05/0.2546, allocations: 27.91 kB / 423.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2546, allocations: 0 / 423.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2546, allocations: 0 / 423.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.2546, allocations: 4 kB / 423.3 MB, free: 13.91 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.0003203/0.2549, allocations: 292.3 kB / 423.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2549, allocations: 12.03 kB / 423.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.969e-05/0.255, allocations: 30.75 kB / 423.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.082e-05/0.255, allocations: 12.88 kB / 423.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.2551, allocations: 118.4 kB / 423.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.913e-06/0.2551, allocations: 384 / 423.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.2551, allocations: 4.375 kB / 423.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.2553, allocations: 66.23 kB / 423.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2553, allocations: 7.938 kB / 423.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.2553, allocations: 4 kB / 423.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2553, allocations: 3.938 kB / 423.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.824e-05/0.2553, allocations: 31.98 kB / 423.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000253/0.2556, allocations: 231.8 kB / 424.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.589e-05/0.2557, allocations: 58.5 kB / 424.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.251e-05/0.2558, allocations: 52.89 kB / 424.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.2558, allocations: 4 kB / 424.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.958e-05/0.2558, allocations: 60.27 kB / 424.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.2558, allocations: 0 / 424.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003256/0.2561, allocations: 207.2 kB / 424.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/0.2562, allocations: 85.09 kB / 424.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.881e-05/0.2563, allocations: 113.8 kB / 424.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.2563, allocations: 25.7 kB / 424.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.806e-05/0.2563, allocations: 84.14 kB / 424.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.2564, allocations: 19.91 kB / 424.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.2564, allocations: 25.7 kB / 424.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.2565, allocations: 314.8 kB / 425.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/0.2566, allocations: 27.98 kB / 425.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.96e-05/0.2566, allocations: 36.3 kB / 425.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001257/0.2567, allocations: 132.3 kB / 425.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.2567, allocations: 4 kB / 425.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001955/0.2569, allocations: 183.2 kB / 425.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.257, allocations: 33.7 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.257, allocations: 4 kB / 425.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.257, allocations: 0 / 425.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.766e-05/0.257, allocations: 4 kB / 425.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.257, allocations: 0 / 425.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.044e-05/0.257, allocations: 4 kB / 425.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.257, allocations: 4 kB / 425.6 MB, free: 11.41 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.0001137/0.2572, allocations: 151.5 kB / 425.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.2572, allocations: 7.953 kB / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.974e-05/0.2572, allocations: 8.375 kB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2572, allocations: 7.984 kB / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2572, allocations: 0 / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2572, allocations: 0 / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004063/0.2576, allocations: 415.2 kB / 426.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2576, allocations: 0 / 426.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.139e-05/0.2576, allocations: 7.969 kB / 426.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.2576, allocations: 0 / 426.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.547e-06/0.2576, allocations: 4 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2576, allocations: 0 / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2576, allocations: 0 / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002544/0.2579, allocations: 297.4 kB / 426.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.484e-06/0.2579, allocations: 7.953 kB / 426.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.2579, allocations: 8 kB / 426.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.144e-05/0.258, allocations: 3.938 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.221e-05/0.258, allocations: 0 / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.258, allocations: 7.984 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.435e-05/0.258, allocations: 87.47 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.258, allocations: 4 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000217/0.2583, allocations: 12 kB / 426.6 MB, free: 10.3 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.0008069/0.2591, allocations: 0.9126 MB / 427.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001882/0.2593, allocations: 139.4 kB / 427.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2593, allocations: 0 / 427.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.433e-05/0.2593, allocations: 99.31 kB / 427.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001945/0.2595, allocations: 11.12 kB / 427.7 MB, free: 9.109 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.2609, allocations: 1.556 MB / 429.3 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.2612, allocations: 0.6844 MB / 430 MB, free: 6.762 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.122e-05/0.2612, allocations: 0 / 430 MB, free: 6.762 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.108e-05/0.2613, allocations: 19.42 kB / 430 MB, free: 6.742 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2613, allocations: 0 / 430 MB, free: 6.742 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02857/0.2898, allocations: 2.054 MB / 432 MB, free: 4.801 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.86, allocations: 7.562 kB / 432 MB, free: 4.797 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.21084410790354]