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.001371/0.001371, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001316/0.001316, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.431/1.431, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001754/0.001754, allocations: 55.92 kB / 328 MB, free: 3.855 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09829/0.1001, allocations: 46.62 MB / 374.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001879/0.102, allocations: 498.4 kB / 375.1 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002908/0.1023, allocations: 55.8 kB / 375.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.035e-05/0.1024, allocations: 0 / 375.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.331e-05/0.1024, allocations: 0 / 375.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.428e-05/0.1025, allocations: 23.91 kB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.1027, allocations: 19.98 kB / 375.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.1028, allocations: 23.92 kB / 375.2 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.21e-05/0.1029, allocations: 7.984 kB / 375.2 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.66e-05/0.1029, allocations: 7.984 kB / 375.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.073e-05/0.103, allocations: 27.91 kB / 375.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.103, allocations: 0 / 375.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.573e-05/0.1031, allocations: 12 kB / 375.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.481e-05/0.1031, allocations: 3.938 kB / 375.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.182e-05/0.1032, allocations: 7.938 kB / 375.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.1033, allocations: 31.91 kB / 375.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1033, allocations: 0 / 375.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.907e-06/0.1033, allocations: 0 / 375.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.1033, 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.0004604/0.1038, allocations: 365.1 kB / 375.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1039, allocations: 12.03 kB / 375.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.023e-05/0.1039, allocations: 38.64 kB / 375.7 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.104, allocations: 8.891 kB / 375.7 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.1042, allocations: 164.4 kB / 375.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.1042, allocations: 4.359 kB / 375.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.1042, allocations: 12.38 kB / 375.9 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001496/0.1044, allocations: 66.19 kB / 376 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.1044, allocations: 3.938 kB / 376 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.1044, allocations: 3.984 kB / 376 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1044, allocations: 7.938 kB / 376 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.813e-05/0.1045, allocations: 31.98 kB / 376 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003245/0.1048, allocations: 252.9 kB / 376.3 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.1049, allocations: 78.44 kB / 376.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.6e-05/0.105, allocations: 52.89 kB / 376.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.105, allocations: 4 kB / 376.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.99e-05/0.1051, allocations: 56.27 kB / 376.5 MB, free: 3.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.1051, allocations: 0 / 376.5 MB, free: 3.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003757/0.1055, allocations: 207.3 kB / 376.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.639e-05/0.1056, allocations: 81.05 kB / 376.7 MB, free: 2.785 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.1057, allocations: 109.8 kB / 376.8 MB, free: 2.668 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.1057, allocations: 29.7 kB / 376.9 MB, free: 2.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.6e-05/0.1058, allocations: 92.12 kB / 377 MB, free: 2.539 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.1058, allocations: 19.95 kB / 377 MB, free: 2.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.1059, allocations: 25.66 kB / 377 MB, free: 2.488 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.106, allocations: 318.8 kB / 377.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.399e-05/0.1061, allocations: 31.98 kB / 377.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.29e-05/0.1061, allocations: 36.28 kB / 377.4 MB, free: 2.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.1063, allocations: 132.2 kB / 377.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1063, allocations: 8.062 kB / 377.5 MB, free: 1.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001993/0.1065, allocations: 167.2 kB / 377.7 MB, free: 1.773 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.338e-05/0.1065, allocations: 45.62 kB / 377.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-06/0.1065, allocations: 320 / 377.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.1066, allocations: 0 / 377.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-05/0.1066, allocations: 0 / 377.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.1066, allocations: 4 kB / 377.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.015e-05/0.1066, allocations: 0 / 377.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.1066, allocations: 7.984 kB / 377.7 MB, free: 1.711 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.0001108/0.1067, allocations: 159.4 kB / 377.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.253e-05/0.1068, allocations: 7.953 kB / 377.9 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.892e-05/0.1068, allocations: 4.375 kB / 377.9 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.1068, allocations: 4 kB / 377.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1068, allocations: 0 / 377.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.1069, allocations: 0 / 377.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005195/0.1074, allocations: 448 kB / 378.4 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1074, allocations: 0 / 378.4 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.005e-06/0.1074, allocations: 0 / 378.4 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-06/0.1074, allocations: 4 kB / 378.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.1074, allocations: 4 kB / 378.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.1074, allocations: 3.984 kB / 378.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1075, allocations: 0 / 378.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002819/0.1077, allocations: 289 kB / 378.6 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-05/0.1078, allocations: 85.03 kB / 378.7 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.1078, allocations: 4 kB / 378.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.46e-05/0.1079, allocations: 4 kB / 378.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.698e-05/0.1079, allocations: 4 kB / 378.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.1079, allocations: 4 kB / 378.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.822e-05/0.108, allocations: 95.27 kB / 378.8 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.108, allocations: 0 / 378.8 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002203/0.1082, allocations: 8 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.1741/0.2823, allocations: 0.9043 MB / 379.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003149/0.2827, allocations: 149.6 kB / 379.9 MB, free: 12.37 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.2827, allocations: 0 / 379.9 MB, free: 12.37 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.2828, allocations: 107.5 kB / 380 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.2831, allocations: 4.812 kB / 380 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.2846, allocations: 1.549 MB / 381.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000157/0.2848, allocations: 0.69 MB / 382.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.987e-05/0.2849, allocations: 2.125 kB / 382.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.228e-05/0.2849, allocations: 13.73 kB / 382.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2849, allocations: 4.844 kB / 382.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/0.3089, allocations: 1.904 MB / 384.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/7.888, allocations: 5.016 kB / 384.2 MB, free: 9.832 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