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.001173/0.001172, allocations: 104.4 kB / 17.15 MB, free: 6.309 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.00124/0.00124, allocations: 198 kB / 18.07 MB, free: 5.41 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.49/1.49, allocations: 205.1 MB / 223.9 MB, free: 12.5 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.001113/0.001113, allocations: 44.34 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1017, allocations: 46.63 MB / 326.7 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001676/0.1035, allocations: 0.5464 MB / 327.2 MB, free: 4.262 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002522/0.1037, allocations: 65.27 kB / 327.3 MB, free: 4.199 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.636e-05/0.1038, allocations: 0 / 327.3 MB, free: 4.199 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.602e-05/0.1038, allocations: 0 / 327.3 MB, free: 4.199 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.042e-05/0.1039, allocations: 15.97 kB / 327.3 MB, free: 4.184 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001266/0.104, allocations: 15.98 kB / 327.3 MB, free: 4.168 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 4.889e-05/0.104, allocations: 31.78 kB / 327.4 MB, free: 4.137 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.682e-05/0.1041, allocations: 8 kB / 327.4 MB, free: 4.129 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.744e-05/0.1041, allocations: 11.98 kB / 327.4 MB, free: 4.117 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.79e-05/0.1042, allocations: 15.98 kB / 327.4 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.1042, allocations: 4 kB / 327.4 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.744e-05/0.1043, allocations: 11.92 kB / 327.4 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.871e-05/0.1043, allocations: 7.984 kB / 327.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.97e-05/0.1043, allocations: 7.938 kB / 327.4 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 7.687e-05/0.1044, allocations: 23.92 kB / 327.4 MB, free: 4.047 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1044, allocations: 0 / 327.4 MB, free: 4.047 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.1044, allocations: 4 kB / 327.4 MB, free: 4.043 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.1044, allocations: 0 / 327.4 MB, free: 4.043 MB / 270.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.000344/0.1048, allocations: 369.4 kB / 327.8 MB, free: 3.625 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1048, allocations: 8.031 kB / 327.8 MB, free: 3.617 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.918e-05/0.1049, allocations: 46.64 kB / 327.9 MB, free: 3.562 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.835e-05/0.1049, allocations: 4.844 kB / 327.9 MB, free: 3.559 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.1051, allocations: 164.4 kB / 328 MB, free: 3.359 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.1051, allocations: 384 / 328 MB, free: 3.359 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.1051, allocations: 4.375 kB / 328 MB, free: 3.355 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.1052, allocations: 70.17 kB / 328.1 MB, free: 3.281 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.1052, allocations: 3.938 kB / 328.1 MB, free: 3.277 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.1053, allocations: 12 kB / 328.1 MB, free: 3.266 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1053, allocations: 0 / 328.1 MB, free: 3.266 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.765e-05/0.1053, allocations: 27.98 kB / 328.1 MB, free: 3.238 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002582/0.1056, allocations: 248.8 kB / 328.4 MB, free: 2.945 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.747e-05/0.1057, allocations: 74.42 kB / 328.5 MB, free: 2.863 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.145e-05/0.1058, allocations: 56.91 kB / 328.5 MB, free: 2.805 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.166e-06/0.1058, allocations: 4 kB / 328.5 MB, free: 2.801 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.1058, allocations: 56.27 kB / 328.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.1058, allocations: 0 / 328.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003131/0.1062, allocations: 215.4 kB / 328.8 MB, free: 2.508 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/0.1062, allocations: 81.05 kB / 328.9 MB, free: 2.41 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.441e-05/0.1063, allocations: 113.8 kB / 329 MB, free: 2.289 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1063, allocations: 29.7 kB / 329 MB, free: 2.254 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.949e-05/0.1064, allocations: 88.08 kB / 329.1 MB, free: 2.164 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.1064, allocations: 23.7 kB / 329.1 MB, free: 2.141 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.825e-05/0.1065, allocations: 21.72 kB / 329.1 MB, free: 2.113 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1066, allocations: 314.8 kB / 329.4 MB, free: 1.797 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4e-05/0.1066, allocations: 27.98 kB / 329.5 MB, free: 1.77 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.315e-05/0.1067, allocations: 39.97 kB / 329.5 MB, free: 1.73 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.1068, allocations: 124.2 kB / 329.6 MB, free: 1.594 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1068, allocations: 3.984 kB / 329.6 MB, free: 1.59 MB / 270.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001775/0.107, allocations: 187.1 kB / 329.8 MB, free: 1.395 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.117e-05/0.107, allocations: 33.7 kB / 329.8 MB, free: 1.355 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.107, allocations: 0 / 329.8 MB, free: 1.355 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1071, allocations: 0 / 329.8 MB, free: 1.355 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.888e-05/0.1071, allocations: 4 kB / 329.9 MB, free: 1.352 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.1071, allocations: 0 / 329.9 MB, free: 1.352 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.333e-05/0.1071, allocations: 7.922 kB / 329.9 MB, free: 1.344 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.1071, allocations: 8 kB / 329.9 MB, free: 1.336 MB / 270.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.0001002/0.1072, allocations: 143.5 kB / 330 MB, free: 1.18 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.731e-05/0.1073, allocations: 7.938 kB / 330 MB, free: 1.172 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.643e-05/0.1073, allocations: 20.36 kB / 330 MB, free: 1.152 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1073, allocations: 0 / 330 MB, free: 1.152 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1073, allocations: 0 / 330 MB, free: 1.152 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1073, allocations: 0 / 330 MB, free: 1.152 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003765/0.1077, allocations: 440 kB / 330.5 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1077, allocations: 0 / 330.5 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.661e-06/0.1077, allocations: 4 kB / 330.5 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1077, allocations: 0 / 330.5 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.1078, allocations: 0 / 330.5 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1078, allocations: 8 kB / 330.5 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1078, allocations: 0.5 kB / 330.5 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.108, allocations: 297.4 kB / 330.8 MB, free: 344 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.52e-05/0.1081, allocations: 85.02 kB / 330.9 MB, free: 240 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.1081, allocations: 0 / 330.9 MB, free: 240 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.435e-05/0.1081, allocations: 4.062 kB / 330.9 MB, free: 236 kB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.004e-05/0.1082, allocations: 7.984 kB / 330.9 MB, free: 228 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.1082, allocations: 8 kB / 330.9 MB, free: 220 kB / 270.1 MB Notification: Performance of sorting global known variables: time 4.248e-05/0.1082, allocations: 87.28 kB / 331 MB, free: 132 kB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1082, allocations: 0 / 331 MB, free: 132 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002399/0.1085, allocations: 19.98 kB / 331 MB, free: 112 kB / 270.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.0008093/0.1093, allocations: 0.9004 MB / 331.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002025/0.1095, allocations: 139.4 kB / 332 MB, free: 15.03 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1095, allocations: 0 / 332 MB, free: 15.03 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.071e-05/0.1096, allocations: 107.4 kB / 332.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.1098, allocations: 8 kB / 332.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.1112, allocations: 1.56 MB / 333.7 MB, free: 13.26 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.1115, allocations: 0.6887 MB / 334.4 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.416e-05/0.1115, allocations: 4 kB / 334.4 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.419e-05/0.1116, allocations: 11.44 kB / 334.4 MB, free: 12.53 MB / 286.1 MB Notification: Performance of SimCode: time 2.645e-06/0.1116, allocations: 0 / 334.4 MB, free: 12.53 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01099/0.1226, allocations: 1.718 MB / 336.1 MB, free: 10.79 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/0.1228, allocations: 247.2 kB / 336.3 MB, free: 10.52 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/1.83, allocations: 0 / 336.3 MB, free: 10.52 MB / 286.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","../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches