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.0008341/0.0008341, allocations: 92.88 kB / 16.65 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.000896/0.0008961, allocations: 178.7 kB / 17.57 MB, free: 5.914 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.226/1.226, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000242/0.0002421, allocations: 8 kB / 301.5 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08219/0.08245, allocations: 50.41 MB / 351.9 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005232/0.083, allocations: 222.1 kB / 352.2 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003174/0.08334, allocations: 51.88 kB / 352.2 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.086e-05/0.08339, allocations: 3.938 kB / 352.2 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.689e-05/0.08342, allocations: 0 / 352.2 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.703e-05/0.08352, allocations: 15.97 kB / 352.2 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000158/0.08368, allocations: 19.97 kB / 352.2 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.16e-05/0.08375, allocations: 15.98 kB / 352.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.036e-05/0.08381, allocations: 0 / 352.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.896e-05/0.08385, allocations: 12 kB / 352.3 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.554e-05/0.08394, allocations: 31.89 kB / 352.3 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.78e-05/0.08397, allocations: 0 / 352.3 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.46e-05/0.08403, allocations: 8 kB / 352.3 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.285e-05/0.08408, allocations: 4 kB / 352.3 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.05e-05/0.08413, allocations: 33.64 kB / 352.3 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.08425, allocations: 27.91 kB / 352.4 MB, free: 2.938 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.08426, allocations: 0 / 352.4 MB, free: 2.938 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.08427, allocations: 3.938 kB / 352.4 MB, free: 2.934 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.08428, allocations: 0 / 352.4 MB, free: 2.934 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.0003429/0.08462, allocations: 357.5 kB / 352.7 MB, free: 2.527 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.08468, allocations: 16.03 kB / 352.7 MB, free: 2.512 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.019e-05/0.08474, allocations: 38.59 kB / 352.8 MB, free: 2.465 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.891e-05/0.08478, allocations: 8.844 kB / 352.8 MB, free: 2.457 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.0849, allocations: 168.4 kB / 353 MB, free: 2.254 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.08492, allocations: 4.359 kB / 353 MB, free: 2.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.08494, allocations: 4.375 kB / 353 MB, free: 2.246 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/0.08507, allocations: 62.25 kB / 353 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.08508, allocations: 7.922 kB / 353 MB, free: 2.172 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.0851, allocations: 3.938 kB / 353 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.08511, allocations: 4 kB / 353 MB, free: 2.164 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.774e-05/0.08516, allocations: 39.92 kB / 353.1 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002237/0.08539, allocations: 244.9 kB / 353.3 MB, free: 1.836 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.635e-05/0.08549, allocations: 70.48 kB / 353.4 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.772e-05/0.08555, allocations: 52.83 kB / 353.4 MB, free: 1.703 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.08557, allocations: 4 kB / 353.4 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/0.08561, allocations: 64.27 kB / 353.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.08562, allocations: 3.938 kB / 353.5 MB, free: 1.617 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.000298/0.08592, allocations: 211.4 kB / 353.7 MB, free: 1.398 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.08598, allocations: 77.11 kB / 353.8 MB, free: 1.305 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.419e-05/0.08607, allocations: 113.9 kB / 353.9 MB, free: 1.184 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.0861, allocations: 29.7 kB / 353.9 MB, free: 1.148 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.061e-05/0.08615, allocations: 88.12 kB / 354 MB, free: 1.059 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.08618, allocations: 23.66 kB / 354 MB, free: 1.035 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.501e-05/0.08621, allocations: 9.719 kB / 354 MB, free: 1.02 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.08633, allocations: 326.8 kB / 354.4 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.164e-05/0.08637, allocations: 31.92 kB / 354.4 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.338e-05/0.08641, allocations: 31.98 kB / 354.4 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.08652, allocations: 132.2 kB / 354.6 MB, free: 496 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.08653, allocations: 0 / 354.6 MB, free: 496 kB / 286.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001988/0.08674, allocations: 175.2 kB / 354.7 MB, free: 308 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/0.08679, allocations: 40.34 kB / 354.8 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.0868, allocations: 0 / 354.8 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.08682, allocations: 0 / 354.8 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.091e-05/0.08684, allocations: 8 kB / 354.8 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.08685, allocations: 0 / 354.8 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.355e-05/0.08688, allocations: 11.84 kB / 354.8 MB, free: 244 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.0869, allocations: 4 kB / 354.8 MB, free: 240 kB / 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.000101/0.08701, allocations: 159.5 kB / 354.9 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.684e-05/0.08704, allocations: 4 kB / 355 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.076e-05/0.08707, allocations: 4.375 kB / 355 MB, free: 52 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.08707, allocations: 0 / 355 MB, free: 52 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.08708, allocations: 4 kB / 355 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.08709, allocations: 4 kB / 355 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003808/0.08748, allocations: 440 kB / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.08749, allocations: 0 / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.773e-06/0.0875, allocations: 0 / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.08751, allocations: 0 / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.08752, allocations: 8 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.08753, allocations: 0 / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.08753, allocations: 0 / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.08777, allocations: 293.1 kB / 355.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.871e-05/0.08782, allocations: 81.02 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.08784, allocations: 7.984 kB / 355.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.15e-05/0.08789, allocations: 0 / 355.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.082e-05/0.08791, allocations: 8 kB / 355.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.08792, allocations: 0 / 355.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.092e-05/0.08798, allocations: 95.7 kB / 355.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08798, allocations: 4 kB / 355.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002211/0.08821, allocations: 19.94 kB / 355.9 MB, free: 15 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.0007191/0.08894, allocations: 0.8991 MB / 356.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001887/0.08914, allocations: 155.3 kB / 356.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.08915, allocations: 0 / 356.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.342e-05/0.08924, allocations: 99.39 kB / 357 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.08945, allocations: 11.94 kB / 357.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.0907, allocations: 1.548 MB / 358.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.09094, allocations: 0.6848 MB / 359.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.545e-05/0.09097, allocations: 3.984 kB / 359.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.609e-05/0.091, allocations: 19.44 kB / 359.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.09101, allocations: 4 kB / 359.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01071/0.1017, allocations: 1.58 MB / 360.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002246/0.102, allocations: 244.3 kB / 361.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/1.694, allocations: 0 / 361.1 MB, free: 9.727 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