Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.004786/0.004786, allocations: 98.45 kB / 21.96 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 218.3 kB / 25.26 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 207.7 MB / 236.1 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 52.34 kB / 347.9 MB, free: 9.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2656, allocations: 49.16 MB / 397.1 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001633/0.2673, allocations: 493.8 kB / 397.6 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002321/0.2675, allocations: 61.36 kB / 397.6 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.198e-05/0.2675, allocations: 0 / 397.6 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.909e-05/0.2676, allocations: 0 / 397.6 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.682e-05/0.2676, allocations: 12.41 kB / 397.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.2678, allocations: 26.66 kB / 397.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.337e-05/0.2679, allocations: 28.58 kB / 397.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4e-05/0.2679, allocations: 1.641 kB / 397.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.214e-05/0.2679, allocations: 14.47 kB / 397.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.837e-05/0.268, allocations: 31.52 kB / 397.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.268, allocations: 0 / 397.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.633e-05/0.2681, allocations: 5.312 kB / 397.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.219e-05/0.2681, allocations: 4.641 kB / 397.8 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.893e-05/0.2681, allocations: 7.625 kB / 397.8 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.604e-05/0.2682, allocations: 31.83 kB / 397.8 MB, free: 8.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2682, allocations: 5.938 kB / 397.8 MB, free: 8.707 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2682, allocations: 0 / 397.8 MB, free: 8.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.2683, allocations: 0 / 397.8 MB, free: 8.707 MB / 318.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.0002438/0.2685, allocations: 291.9 kB / 398.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.2685, allocations: 14.62 kB / 398.1 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.156e-05/0.2685, allocations: 192 / 398.1 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.646e-05/0.2686, allocations: 39.41 kB / 398.1 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.359e-05/0.2686, allocations: 7.516 kB / 398.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.13e-05/0.2687, allocations: 110.4 kB / 398.3 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.2687, allocations: 6.906 kB / 398.3 MB, free: 8.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.2687, allocations: 3 kB / 398.3 MB, free: 8.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001199/0.2688, allocations: 110.7 kB / 398.4 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.2688, allocations: 1.125 kB / 398.4 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.752e-06/0.2688, allocations: 0 / 398.4 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2688, allocations: 1.672 kB / 398.4 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.513e-05/0.2689, allocations: 65.78 kB / 398.4 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001839/0.2691, allocations: 222.7 kB / 398.7 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.2692, allocations: 92.81 kB / 398.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.059e-05/0.2693, allocations: 73.58 kB / 398.8 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.2693, allocations: 1.875 kB / 398.8 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.2693, allocations: 64.09 kB / 398.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.2693, allocations: 4 kB / 398.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.000345/0.2697, allocations: 275.3 kB / 399.2 MB, free: 7.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.2697, allocations: 80.52 kB / 399.2 MB, free: 7.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.366e-05/0.2698, allocations: 116 kB / 399.4 MB, free: 7.316 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.287e-06/0.2698, allocations: 26.86 kB / 399.4 MB, free: 7.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.354e-05/0.2698, allocations: 82.2 kB / 399.5 MB, free: 7.203 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/0.2698, allocations: 19.23 kB / 399.5 MB, free: 7.188 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.554e-05/0.2698, allocations: 24.06 kB / 399.5 MB, free: 7.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.2699, allocations: 315.3 kB / 399.8 MB, free: 6.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.1e-05/0.2699, allocations: 61.81 kB / 399.9 MB, free: 6.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.872e-05/0.27, allocations: 61.91 kB / 399.9 MB, free: 6.785 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.2701, allocations: 139.9 kB / 400.1 MB, free: 6.695 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2701, allocations: 3.938 kB / 400.1 MB, free: 6.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001843/0.2703, allocations: 198.8 kB / 400.3 MB, free: 6.582 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.2703, allocations: 33.25 kB / 400.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2703, allocations: 2.141 kB / 400.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.2703, allocations: 0 / 400.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.685e-05/0.2703, allocations: 1.375 kB / 400.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/0.2704, allocations: 0 / 400.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.184e-05/0.2704, allocations: 11.3 kB / 400.3 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.2704, allocations: 2.406 kB / 400.3 MB, free: 6.543 MB / 318.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 7.259e-05/0.2705, allocations: 154.1 kB / 400.5 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.2705, allocations: 7.734 kB / 400.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.03e-05/0.2705, allocations: 11.78 kB / 400.5 MB, free: 6.379 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2705, allocations: 7.922 kB / 400.5 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2705, allocations: 0.9688 kB / 400.5 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2705, allocations: 3.938 kB / 400.5 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003095/0.2708, allocations: 440.5 kB / 400.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2708, allocations: 0.9375 kB / 400.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.202e-06/0.2708, allocations: 1.25 kB / 400.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.2708, allocations: 0 / 400.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.2708, allocations: 7.969 kB / 400.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.2708, allocations: 5.344 kB / 400.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2708, allocations: 0.8906 kB / 400.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002/0.271, allocations: 329.5 kB / 401.3 MB, free: 5.777 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.045e-06/0.2711, allocations: 10 kB / 401.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.2711, allocations: 2.406 kB / 401.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.245e-05/0.2711, allocations: 2.594 kB / 401.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.962e-05/0.2711, allocations: 2.781 kB / 401.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.2711, allocations: 3.516 kB / 401.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.904e-05/0.2712, allocations: 91.42 kB / 401.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2712, allocations: 0 / 401.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002163/0.2714, allocations: 19.28 kB / 401.4 MB, free: 5.684 MB / 318.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.0006064/0.272, allocations: 0.9627 MB / 402.4 MB, free: 4.871 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000171/0.2722, allocations: 201.9 kB / 402.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2722, allocations: 1.5 kB / 402.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.764e-05/0.2722, allocations: 126.5 kB / 402.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001945/0.2724, allocations: 9.016 kB / 402.7 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.2735, allocations: 1.703 MB / 404.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.837e-05/0.2735, allocations: 68.48 kB / 404.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.158e-05/0.2735, allocations: 1.844 kB / 404.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.646e-05/0.2736, allocations: 14.22 kB / 404.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2736, allocations: 0 / 404.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02198/0.2955, allocations: 2.128 MB / 406.6 MB, free: 2.203 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.63, allocations: 14.02 kB / 406.6 MB, free: 2.191 MB / 318.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.03303217003122]