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.0009302/0.0009302, allocations: 87.62 kB / 21.43 MB, free: 3.125 MB / 18.57 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.004941/0.004941, allocations: 157.3 kB / 24.69 MB, free: 8.883 MB / 18.57 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 0.9292/0.9292, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 298.4 MB, free: 3.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.601e-05/1.756e-05, allocations: 2.281 kB / 298.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0009835/0.001001, allocations: 494.9 kB / 298.9 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002077/0.001209, allocations: 67.73 kB / 299 MB, free: 3.008 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.82e-05/0.001237, allocations: 4 kB / 299 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.948e-05/0.001267, allocations: 0 / 299 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.113e-05/0.001338, allocations: 15.97 kB / 299 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001499/0.001488, allocations: 15.92 kB / 299 MB, free: 2.973 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.313e-05/0.001571, allocations: 19.98 kB / 299 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.973e-05/0.00161, allocations: 3.984 kB / 299 MB, free: 2.949 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.161e-05/0.001652, allocations: 23.91 kB / 299 MB, free: 2.926 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.748e-05/0.001719, allocations: 19.98 kB / 299.1 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.001735, allocations: 0 / 299.1 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.985e-05/0.001784, allocations: 7.984 kB / 299.1 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.29e-05/0.001827, allocations: 8 kB / 299.1 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.001856, allocations: 15.92 kB / 299.1 MB, free: 2.875 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.218e-05/0.001948, allocations: 19.92 kB / 299.1 MB, free: 2.855 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.00195, allocations: 0 / 299.1 MB, free: 2.855 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.001951, allocations: 0 / 299.1 MB, free: 2.855 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.001955, allocations: 4 kB / 299.1 MB, free: 2.852 MB / 282.7 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.0002657/0.002221, allocations: 284 kB / 299.4 MB, free: 2.535 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.002258, allocations: 15.92 kB / 299.4 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.061e-05/0.002308, allocations: 46.69 kB / 299.4 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.35e-05/0.002332, allocations: 4.891 kB / 299.5 MB, free: 2.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.218e-05/0.002404, allocations: 117.7 kB / 299.6 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.002414, allocations: 4.375 kB / 299.6 MB, free: 2.316 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-06/0.002422, allocations: 384 / 299.6 MB, free: 2.316 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.002542, allocations: 103.9 kB / 299.7 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.00255, allocations: 192 / 299.7 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.002558, allocations: 384 / 299.7 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.002565, allocations: 8.125 kB / 299.7 MB, free: 2.195 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.487e-05/0.002609, allocations: 61.67 kB / 299.7 MB, free: 2.129 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002013/0.002811, allocations: 215.9 kB / 300 MB, free: 1.875 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.092e-05/0.002892, allocations: 92.25 kB / 300 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.077e-05/0.002942, allocations: 78.59 kB / 300.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.626e-06/0.002951, allocations: 4 kB / 300.1 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.002984, allocations: 64.2 kB / 300.2 MB, free: 1.602 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 9.01e-07/0.002985, allocations: 3.938 kB / 300.2 MB, free: 1.598 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.000267/0.003252, allocations: 270.9 kB / 300.5 MB, free: 1.309 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.003288, allocations: 77.11 kB / 300.5 MB, free: 1.215 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.855e-05/0.003346, allocations: 109.8 kB / 300.6 MB, free: 1.098 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.788e-06/0.003356, allocations: 29.7 kB / 300.7 MB, free: 1.062 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.67e-05/0.003383, allocations: 84.14 kB / 300.7 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.003408, allocations: 27.94 kB / 300.8 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-05/0.003436, allocations: 25.7 kB / 300.8 MB, free: 0.918 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.931e-05/0.003505, allocations: 310.8 kB / 301.1 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.12e-05/0.003547, allocations: 69.67 kB / 301.2 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.485e-05/0.003581, allocations: 65.98 kB / 301.2 MB, free: 472 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.721e-05/0.003659, allocations: 132.2 kB / 301.4 MB, free: 324 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.003662, allocations: 4.062 kB / 301.4 MB, free: 320 kB / 282.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001237/0.003786, allocations: 201 kB / 301.6 MB, free: 100 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.003812, allocations: 37.62 kB / 301.6 MB, free: 56 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.003817, allocations: 4 kB / 301.6 MB, free: 52 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.003828, allocations: 0 / 301.6 MB, free: 52 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.691e-05/0.003845, allocations: 0 / 301.6 MB, free: 52 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.003851, allocations: 0 / 301.6 MB, free: 52 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.497e-05/0.003865, allocations: 8 kB / 301.6 MB, free: 44 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-06/0.003872, allocations: 3.938 kB / 301.6 MB, free: 40 kB / 282.7 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.1272/0.1311, allocations: 146.2 kB / 301.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.117e-05/0.1311, allocations: 11.16 kB / 301.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.991e-05/0.1311, allocations: 9.062 kB / 301.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1311, allocations: 0.875 kB / 301.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.1311, allocations: 3.344 kB / 301.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1311, allocations: 3.469 kB / 301.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.1314, allocations: 435.5 kB / 302.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1314, allocations: 1.125 kB / 302.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.426e-06/0.1314, allocations: 1.344 kB / 302.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1314, allocations: 1.469 kB / 302.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.1315, allocations: 4.953 kB / 302.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.1315, allocations: 4.594 kB / 302.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1315, allocations: 0 / 302.2 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.1316, allocations: 322.8 kB / 302.5 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.115e-06/0.1316, allocations: 12.52 kB / 302.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.1317, allocations: 6.281 kB / 302.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.888e-05/0.1317, allocations: 3.047 kB / 302.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.717e-05/0.1317, allocations: 3.422 kB / 302.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.994e-06/0.1317, allocations: 7.828 kB / 302.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.274e-05/0.1317, allocations: 85.73 kB / 302.7 MB, free: 14.83 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1317, allocations: 0 / 302.7 MB, free: 14.83 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001574/0.1319, allocations: 15.81 kB / 302.7 MB, free: 14.83 MB / 282.7 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.0004695/0.1324, allocations: 0.9628 MB / 303.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001584/0.1325, allocations: 196.8 kB / 303.8 MB, free: 13.95 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1325, allocations: 3.688 kB / 303.8 MB, free: 13.95 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.064e-05/0.1326, allocations: 123.1 kB / 304 MB, free: 13.85 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001506/0.1327, allocations: 11.95 kB / 304 MB, free: 13.85 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008517/0.1336, allocations: 1.701 MB / 305.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.373e-05/0.1336, allocations: 73.19 kB / 305.7 MB, free: 12.42 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.359e-05/0.1336, allocations: 1.672 kB / 305.7 MB, free: 12.42 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.881e-05/0.1337, allocations: 18.39 kB / 305.8 MB, free: 12.41 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1337, allocations: 1.094 kB / 305.8 MB, free: 12.41 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01467/0.1483, allocations: 2.554 MB / 308.3 MB, free: 11.13 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.492/6.64, allocations: 9.25 kB / 308.3 MB, free: 11.12 MB / 282.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/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: 8.271596191450953]