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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 106.6 kB / 17.73 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 191 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 51.94 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.107, allocations: 46.62 MB / 374.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002099/0.1092, allocations: 494.5 kB / 375.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002935/0.1095, allocations: 55.8 kB / 375.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.837e-05/0.1096, allocations: 0 / 375.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.905e-05/0.1096, allocations: 3.984 kB / 375.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.296e-05/0.1097, allocations: 11.98 kB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.1099, allocations: 23.92 kB / 375.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.1101, allocations: 27.91 kB / 375.2 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.192e-05/0.1101, allocations: 0 / 375.2 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.897e-05/0.1102, allocations: 8 kB / 375.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.529e-05/0.1103, allocations: 27.95 kB / 375.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.1103, allocations: 4 kB / 375.3 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.029e-05/0.1103, allocations: 8 kB / 375.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.995e-05/0.1104, allocations: 7.938 kB / 375.3 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.28e-05/0.1104, allocations: 7.938 kB / 375.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.1106, allocations: 27.91 kB / 375.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1106, allocations: 0 / 375.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1106, allocations: 0 / 375.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1106, allocations: 0 / 375.3 MB, free: 4.422 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.0004378/0.111, allocations: 369.4 kB / 375.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.1111, allocations: 16.03 kB / 375.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.998e-05/0.1112, allocations: 34.66 kB / 375.7 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.63e-05/0.1112, allocations: 4.938 kB / 375.7 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.1114, allocations: 172.2 kB / 375.9 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.1114, allocations: 8.312 kB / 375.9 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.1114, allocations: 8.375 kB / 375.9 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001572/0.1116, allocations: 66.23 kB / 376 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.1116, allocations: 3.938 kB / 376 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.1116, allocations: 0 / 376 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.1116, allocations: 3.984 kB / 376 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.323e-05/0.1117, allocations: 39.98 kB / 376 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003424/0.1121, allocations: 252.8 kB / 376.3 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.1122, allocations: 70.5 kB / 376.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.098e-05/0.1123, allocations: 56.88 kB / 376.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.14e-05/0.1123, allocations: 0 / 376.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.1123, allocations: 60.27 kB / 376.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.81e-07/0.1124, allocations: 4 kB / 376.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003638/0.1127, allocations: 211.2 kB / 376.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.1128, allocations: 85.09 kB / 376.7 MB, free: 2.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.223e-05/0.1129, allocations: 109.8 kB / 376.8 MB, free: 2.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.1129, allocations: 25.7 kB / 376.9 MB, free: 2.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.12e-05/0.113, allocations: 88.14 kB / 377 MB, free: 2.531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.113, allocations: 15.66 kB / 377 MB, free: 2.516 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-05/0.1131, allocations: 25.7 kB / 377 MB, free: 2.484 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1132, allocations: 322.8 kB / 377.3 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.743e-05/0.1133, allocations: 31.98 kB / 377.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.356e-05/0.1133, allocations: 27.98 kB / 377.4 MB, free: 2.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.1134, allocations: 140.3 kB / 377.5 MB, free: 1.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1134, allocations: 0 / 377.5 MB, free: 1.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001985/0.1136, allocations: 167.3 kB / 377.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.276e-05/0.1137, allocations: 41.69 kB / 377.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.1137, allocations: 448 / 377.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.1137, allocations: 0 / 377.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.75e-05/0.1138, allocations: 0 / 377.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.1138, allocations: 4 kB / 377.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.298e-05/0.1138, allocations: 15.84 kB / 377.7 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.1138, allocations: 4 kB / 377.7 MB, free: 1.703 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 0.0001255/0.114, allocations: 155.4 kB / 377.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.121e-05/0.114, allocations: 4 kB / 377.9 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.59e-05/0.114, allocations: 4.375 kB / 377.9 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.114, allocations: 0 / 377.9 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.1141, allocations: 3.938 kB / 377.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1141, allocations: 11.92 kB / 377.9 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004533/0.1145, allocations: 436.2 kB / 378.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1145, allocations: 0 / 378.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-06/0.1145, allocations: 0 / 378.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1146, allocations: 3.938 kB / 378.3 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.1146, allocations: 7.984 kB / 378.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1146, allocations: 3.938 kB / 378.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1146, allocations: 0 / 378.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002722/0.1149, allocations: 289 kB / 378.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.475e-05/0.1149, allocations: 85.02 kB / 378.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.115, allocations: 4 kB / 378.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.817e-05/0.115, allocations: 4 kB / 378.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.189e-05/0.115, allocations: 0 / 378.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.992e-06/0.1151, allocations: 4 kB / 378.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.484e-05/0.1151, allocations: 91.27 kB / 378.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1151, allocations: 0 / 378.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002405/0.1154, allocations: 12 kB / 378.8 MB, free: 500 kB / 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.2002/0.3156, allocations: 0.8974 MB / 379.7 MB, free: 12.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002485/0.3159, allocations: 143.1 kB / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3159, allocations: 0 / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.497e-05/0.316, allocations: 110 kB / 380 MB, free: 12.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.3163, allocations: 11.98 kB / 380 MB, free: 12.32 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.3176, allocations: 1.552 MB / 381.5 MB, free: 11.15 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.3178, allocations: 0.6886 MB / 382.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.653e-05/0.3178, allocations: 3.578 kB / 382.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.724e-05/0.3178, allocations: 13.22 kB / 382.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3178, allocations: 0 / 382.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.3385, allocations: 1.922 MB / 384.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.488/7.826, allocations: 8.922 kB / 384.2 MB, free: 9.84 MB / 318.1 MB (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 --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) 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) Reference file matches