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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 108.8 kB / 16.92 MB, free: 5.785 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.001072/0.001071, allocations: 191.3 kB / 17.85 MB, free: 5.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001029/0.00103, allocations: 47.08 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1235, allocations: 49.44 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002395/0.126, allocations: 494.8 kB / 350.6 MB, free: 3.863 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003054/0.1263, allocations: 55.8 kB / 350.7 MB, free: 3.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.48e-05/0.1264, allocations: 0 / 350.7 MB, free: 3.809 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.944e-05/0.1264, allocations: 4 kB / 350.7 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.625e-05/0.1265, allocations: 11.98 kB / 350.7 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.1267, allocations: 23.91 kB / 350.7 MB, free: 3.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.1269, allocations: 19.98 kB / 350.7 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.194e-05/0.1269, allocations: 8 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.052e-05/0.127, allocations: 11.98 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.356e-05/0.1271, allocations: 23.91 kB / 350.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.1271, allocations: 0 / 350.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.361e-05/0.1272, allocations: 8 kB / 350.8 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.594e-05/0.1272, allocations: 7.984 kB / 350.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.1273, allocations: 11.94 kB / 350.8 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.1274, allocations: 27.91 kB / 350.8 MB, free: 3.652 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1274, allocations: 0 / 350.8 MB, free: 3.652 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1274, allocations: 0 / 350.8 MB, free: 3.652 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.431e-06/0.1274, allocations: 0 / 350.8 MB, free: 3.652 MB / 286.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.0004122/0.1278, allocations: 361.5 kB / 351.2 MB, free: 3.242 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.1279, allocations: 8.031 kB / 351.2 MB, free: 3.234 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.084e-05/0.128, allocations: 50.52 kB / 351.3 MB, free: 3.176 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.128, allocations: 8.844 kB / 351.3 MB, free: 3.168 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.1282, allocations: 164.4 kB / 351.4 MB, free: 2.969 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.1282, allocations: 8.312 kB / 351.4 MB, free: 2.961 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.1282, allocations: 4.375 kB / 351.4 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.1284, allocations: 70.23 kB / 351.5 MB, free: 2.883 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1285, allocations: 3.938 kB / 351.5 MB, free: 2.879 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.1285, allocations: 3.938 kB / 351.5 MB, free: 2.875 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1285, allocations: 4 kB / 351.5 MB, free: 2.871 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.482e-05/0.1285, allocations: 27.98 kB / 351.5 MB, free: 2.844 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003027/0.1288, allocations: 260.8 kB / 351.8 MB, free: 2.539 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.129, allocations: 70.48 kB / 351.9 MB, free: 2.461 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.66e-05/0.1291, allocations: 52.91 kB / 351.9 MB, free: 2.406 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.677e-06/0.1291, allocations: 0 / 351.9 MB, free: 2.406 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.34e-05/0.1291, allocations: 64.19 kB / 352 MB, free: 2.328 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.1291, allocations: 0 / 352 MB, free: 2.328 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003714/0.1295, allocations: 203.3 kB / 352.2 MB, free: 2.117 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.1296, allocations: 85.11 kB / 352.3 MB, free: 2.016 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.1297, allocations: 117.9 kB / 352.4 MB, free: 1.891 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.1297, allocations: 29.7 kB / 352.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.194e-05/0.1298, allocations: 80.14 kB / 352.5 MB, free: 1.773 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.047e-05/0.1298, allocations: 27.64 kB / 352.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.399e-05/0.1299, allocations: 21.72 kB / 352.5 MB, free: 1.719 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002418/0.1301, allocations: 318.8 kB / 352.8 MB, free: 1.398 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.959e-05/0.1302, allocations: 27.98 kB / 352.9 MB, free: 1.371 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.1304, allocations: 39.98 kB / 352.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.1305, allocations: 136.3 kB / 353 MB, free: 1.184 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1305, allocations: 0 / 353 MB, free: 1.184 MB / 286.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002069/0.1307, allocations: 175.1 kB / 353.2 MB, free: 1 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.753e-05/0.1308, allocations: 33.7 kB / 353.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1308, allocations: 0 / 353.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.1308, allocations: 0 / 353.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.356e-05/0.1308, allocations: 3.984 kB / 353.3 MB, free: 0.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1308, allocations: 4 kB / 353.3 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.967e-05/0.1309, allocations: 4 kB / 353.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.1309, allocations: 8 kB / 353.3 MB, free: 0.9414 MB / 286.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.0001265/0.131, allocations: 151.4 kB / 353.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.1311, allocations: 4 kB / 353.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.433e-05/0.1311, allocations: 8.375 kB / 353.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1311, allocations: 4 kB / 353.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1311, allocations: 0 / 353.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1311, allocations: 0 / 353.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005316/0.1317, allocations: 440 kB / 353.9 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.1317, allocations: 7.984 kB / 353.9 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.089e-05/0.1317, allocations: 7.938 kB / 353.9 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1317, allocations: 3.938 kB / 353.9 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.1317, allocations: 4 kB / 353.9 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1317, allocations: 0 / 353.9 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1318, allocations: 4 kB / 353.9 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003168/0.1321, allocations: 285.4 kB / 354.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.1321, allocations: 81.02 kB / 354.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.1322, allocations: 8 kB / 354.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.602e-05/0.1322, allocations: 0 / 354.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.624e-05/0.1322, allocations: 11.98 kB / 354.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.1323, allocations: 4.5 kB / 354.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.353e-05/0.1323, allocations: 91.27 kB / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1323, allocations: 0 / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002501/0.1326, allocations: 16 kB / 354.4 MB, free: 15.71 MB / 302.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.0009595/0.1336, allocations: 0.8958 MB / 355.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002347/0.1338, allocations: 147.4 kB / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1338, allocations: 3.938 kB / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.285e-05/0.1339, allocations: 103.4 kB / 355.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.1342, allocations: 15.94 kB / 355.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.1357, allocations: 1.55 MB / 357.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.136, allocations: 0.6846 MB / 357.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.799e-05/0.1361, allocations: 4 kB / 357.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.613e-05/0.1361, allocations: 19.36 kB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1361, allocations: 0 / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.1586, allocations: 1.848 MB / 359.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.398/7.556, allocations: 17.03 kB / 359.7 MB, free: 10.37 MB / 302.1 MB (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 --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) 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) Reference file matches