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.001084/0.001084, allocations: 114.7 kB / 17.28 MB, free: 6.219 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.001059/0.001059, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.453/1.453, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001236/0.001236, allocations: 47.92 kB / 280.2 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08461/0.08586, allocations: 46.63 MB / 326.9 MB, free: 4.715 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001504/0.0874, allocations: 0.5347 MB / 327.4 MB, free: 4.176 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001984/0.08761, allocations: 65.25 kB / 327.5 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.09e-05/0.08764, allocations: 0 / 327.5 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.566e-05/0.08768, allocations: 0 / 327.5 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.903e-05/0.08774, allocations: 15.98 kB / 327.5 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001326/0.08788, allocations: 23.97 kB / 327.5 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 7.17e-05/0.08796, allocations: 23.91 kB / 327.5 MB, free: 4.051 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.146e-05/0.088, allocations: 0 / 327.5 MB, free: 4.051 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.409e-05/0.08803, allocations: 15.94 kB / 327.5 MB, free: 4.035 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.216e-05/0.0881, allocations: 27.95 kB / 327.6 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.766e-05/0.08813, allocations: 0 / 327.6 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.213e-05/0.08817, allocations: 11.94 kB / 327.6 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.177e-05/0.0882, allocations: 4 kB / 327.6 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.08823, allocations: 11.94 kB / 327.6 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 7.288e-05/0.08831, allocations: 27.91 kB / 327.6 MB, free: 3.953 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.08832, allocations: 3.984 kB / 327.6 MB, free: 3.949 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.08833, allocations: 0 / 327.6 MB, free: 3.949 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.08834, allocations: 0 / 327.6 MB, free: 3.949 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.000284/0.08862, allocations: 361.4 kB / 328 MB, free: 3.539 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.08867, allocations: 8.031 kB / 328 MB, free: 3.531 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.519e-05/0.08872, allocations: 42.59 kB / 328 MB, free: 3.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.578e-05/0.08875, allocations: 16.84 kB / 328 MB, free: 3.465 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.247e-05/0.08885, allocations: 164.4 kB / 328.2 MB, free: 3.266 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.08887, allocations: 4.375 kB / 328.2 MB, free: 3.262 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-06/0.08888, allocations: 384 / 328.2 MB, free: 3.262 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.08899, allocations: 74.17 kB / 328.3 MB, free: 3.184 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.08901, allocations: 3.938 kB / 328.3 MB, free: 3.18 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.08902, allocations: 4 kB / 328.3 MB, free: 3.176 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.08903, allocations: 0 / 328.3 MB, free: 3.176 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.254e-05/0.08908, allocations: 35.98 kB / 328.3 MB, free: 3.141 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002073/0.08929, allocations: 252.8 kB / 328.6 MB, free: 2.844 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.503e-05/0.08938, allocations: 70.44 kB / 328.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.255e-05/0.08944, allocations: 48.89 kB / 328.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.514e-06/0.08945, allocations: 0 / 328.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.0895, allocations: 64.27 kB / 328.8 MB, free: 2.637 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.0895, allocations: 4 kB / 328.8 MB, free: 2.633 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002748/0.08978, allocations: 211.4 kB / 329 MB, free: 2.414 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.08984, allocations: 89.03 kB / 329.1 MB, free: 2.309 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.515e-05/0.08991, allocations: 109.8 kB / 329.2 MB, free: 2.191 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.08993, allocations: 29.7 kB / 329.2 MB, free: 2.156 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.668e-05/0.08997, allocations: 88.08 kB / 329.3 MB, free: 2.066 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.09, allocations: 15.72 kB / 329.3 MB, free: 2.051 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.335e-05/0.09003, allocations: 25.7 kB / 329.3 MB, free: 2.02 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 9.447e-05/0.09013, allocations: 318.8 kB / 329.6 MB, free: 1.699 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.63e-05/0.09018, allocations: 31.98 kB / 329.7 MB, free: 1.668 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.422e-05/0.09022, allocations: 31.98 kB / 329.7 MB, free: 1.637 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.357e-05/0.09032, allocations: 128.2 kB / 329.8 MB, free: 1.496 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.09033, allocations: 0 / 329.8 MB, free: 1.496 MB / 270.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001642/0.0905, allocations: 179.1 kB / 330 MB, free: 1.309 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.09054, allocations: 37.69 kB / 330 MB, free: 1.266 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.09055, allocations: 0 / 330 MB, free: 1.266 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.09056, allocations: 0 / 330 MB, free: 1.266 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.561e-05/0.09058, allocations: 0 / 330 MB, free: 1.266 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.09059, allocations: 4 kB / 330 MB, free: 1.262 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.034e-05/0.09061, allocations: 7.938 kB / 330 MB, free: 1.254 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.09063, allocations: 0 / 330 MB, free: 1.254 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 9.639e-05/0.09073, allocations: 155.5 kB / 330.2 MB, free: 1.086 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.561e-05/0.09076, allocations: 7.938 kB / 330.2 MB, free: 1.078 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.744e-05/0.09078, allocations: 12.36 kB / 330.2 MB, free: 1.066 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.09079, allocations: 0 / 330.2 MB, free: 1.066 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.0908, allocations: 3.984 kB / 330.2 MB, free: 1.062 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.0908, allocations: 0 / 330.2 MB, free: 1.062 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003433/0.09115, allocations: 448 kB / 330.7 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.09116, allocations: 0 / 330.7 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-06/0.09118, allocations: 4.484 kB / 330.7 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.09118, allocations: 0 / 330.7 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.0912, allocations: 4 kB / 330.7 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.0912, allocations: 0 / 330.7 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.09121, allocations: 4 kB / 330.7 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.09143, allocations: 301.1 kB / 331 MB, free: 240 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.909e-05/0.09147, allocations: 81.02 kB / 331 MB, free: 140 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.09149, allocations: 4 kB / 331 MB, free: 136 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.108e-05/0.09154, allocations: 0 / 331 MB, free: 136 kB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.747e-05/0.09156, allocations: 0 / 331 MB, free: 136 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.09157, allocations: 4 kB / 331 MB, free: 132 kB / 270.1 MB Notification: Performance of sorting global known variables: time 4.003e-05/0.09162, allocations: 91.27 kB / 331.1 MB, free: 40 kB / 270.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.09162, allocations: 0 / 331.1 MB, free: 40 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002167/0.09184, allocations: 12 kB / 331.1 MB, free: 28 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.0007247/0.09257, allocations: 0.9053 MB / 332.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001759/0.09276, allocations: 151.4 kB / 332.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.09277, allocations: 0 / 332.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.297e-05/0.09286, allocations: 107.4 kB / 332.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.09307, allocations: 4 kB / 332.3 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.0943, allocations: 1.57 MB / 333.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.09455, allocations: 0.6846 MB / 334.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.223e-05/0.09457, allocations: 4 kB / 334.6 MB, free: 12.44 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.28e-05/0.09461, allocations: 11.44 kB / 334.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09461, allocations: 0 / 334.6 MB, free: 12.43 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01211/0.1067, allocations: 1.77 MB / 336.3 MB, free: 10.66 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002296/0.107, allocations: 243.4 kB / 336.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/1.876, allocations: 7.938 kB / 336.6 MB, free: 10.39 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