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.001116/0.001116, allocations: 95.61 kB / 17.3 MB, free: 6.391 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.001252/0.001252, allocations: 175.6 kB / 18.21 MB, free: 5.551 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.475/1.475, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.000459/0.000459, allocations: 12.38 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08732/0.08779, allocations: 47.58 MB / 329 MB, free: 3.676 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006365/0.08847, allocations: 220.4 kB / 329.3 MB, free: 3.461 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003143/0.08881, allocations: 57.33 kB / 329.3 MB, free: 3.406 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.646e-05/0.08885, allocations: 0 / 329.3 MB, free: 3.406 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.042e-05/0.08889, allocations: 3.938 kB / 329.3 MB, free: 3.402 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.553e-05/0.08896, allocations: 11.98 kB / 329.3 MB, free: 3.391 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000138/0.0891, allocations: 23.97 kB / 329.4 MB, free: 3.367 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.283e-05/0.08917, allocations: 19.92 kB / 329.4 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.533e-05/0.08922, allocations: 0 / 329.4 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.075e-05/0.08926, allocations: 11.98 kB / 329.4 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.972e-05/0.08933, allocations: 27.97 kB / 329.4 MB, free: 3.309 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.08936, allocations: 4 kB / 329.4 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.978e-05/0.0894, allocations: 4 kB / 329.4 MB, free: 3.301 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.161e-05/0.08945, allocations: 7.938 kB / 329.4 MB, free: 3.293 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.512e-05/0.0895, allocations: 37.62 kB / 329.5 MB, free: 3.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 8.408e-05/0.08959, allocations: 23.92 kB / 329.5 MB, free: 3.227 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.0896, allocations: 4 kB / 329.5 MB, free: 3.223 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.08962, allocations: 0 / 329.5 MB, free: 3.223 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.08963, allocations: 0 / 329.5 MB, free: 3.223 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.0003242/0.08996, allocations: 361.4 kB / 329.8 MB, free: 2.812 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.09001, allocations: 12.03 kB / 329.9 MB, free: 2.801 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.25e-05/0.09008, allocations: 42.59 kB / 329.9 MB, free: 2.75 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.34e-05/0.09011, allocations: 0.9375 kB / 329.9 MB, free: 2.75 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.09023, allocations: 172.2 kB / 330.1 MB, free: 2.543 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.09025, allocations: 4.359 kB / 330.1 MB, free: 2.539 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.09027, allocations: 8.375 kB / 330.1 MB, free: 2.531 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.09041, allocations: 66.23 kB / 330.1 MB, free: 2.461 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.09042, allocations: 3.938 kB / 330.1 MB, free: 2.457 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.09044, allocations: 7.984 kB / 330.2 MB, free: 2.449 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.09045, allocations: 0 / 330.2 MB, free: 2.449 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.236e-05/0.09051, allocations: 39.92 kB / 330.2 MB, free: 2.41 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000274/0.09079, allocations: 240.9 kB / 330.4 MB, free: 2.125 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.0909, allocations: 66.5 kB / 330.5 MB, free: 2.051 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.588e-05/0.09099, allocations: 56.89 kB / 330.6 MB, free: 1.992 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.091, allocations: 0 / 330.6 MB, free: 1.992 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.09105, allocations: 68.2 kB / 330.6 MB, free: 1.91 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 8.72e-07/0.09106, allocations: 0 / 330.6 MB, free: 1.91 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003379/0.0914, allocations: 215.2 kB / 330.8 MB, free: 1.688 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.09146, allocations: 77.11 kB / 330.9 MB, free: 1.594 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.09157, allocations: 109.8 kB / 331 MB, free: 1.477 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.0916, allocations: 33.64 kB / 331 MB, free: 1.438 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.613e-05/0.09165, allocations: 92.06 kB / 331.1 MB, free: 1.344 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.23e-05/0.09169, allocations: 19.86 kB / 331.2 MB, free: 1.324 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.09173, allocations: 17.72 kB / 331.2 MB, free: 1.301 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.09186, allocations: 322.8 kB / 331.5 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.105e-05/0.09191, allocations: 27.98 kB / 331.5 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.875e-05/0.09195, allocations: 35.98 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.09208, allocations: 132.2 kB / 331.7 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.09209, allocations: 0 / 331.7 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001816/0.09228, allocations: 167.3 kB / 331.8 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.09232, allocations: 37.69 kB / 331.9 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.09233, allocations: 0 / 331.9 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.09235, allocations: 0 / 331.9 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.69e-05/0.09237, allocations: 8 kB / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.09238, allocations: 0 / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.363e-05/0.09241, allocations: 7.844 kB / 331.9 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.09243, allocations: 8 kB / 331.9 MB, free: 0.5273 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.821e-05/0.09253, allocations: 151.4 kB / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.612e-05/0.09256, allocations: 4 kB / 332.1 MB, free: 368 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.102e-05/0.09259, allocations: 8.375 kB / 332.1 MB, free: 360 kB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.0926, allocations: 7.938 kB / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.09261, allocations: 0 / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.09262, allocations: 0 / 332.1 MB, free: 352 kB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003768/0.093, allocations: 436.2 kB / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.09301, allocations: 0 / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.177e-06/0.09303, allocations: 11.88 kB / 332.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.09304, allocations: 3.984 kB / 332.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.09305, allocations: 0 / 332.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.09305, allocations: 0 / 332.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.09306, allocations: 4 kB / 332.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.09329, allocations: 293 kB / 332.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.022e-05/0.09334, allocations: 81.02 kB / 332.9 MB, free: 15.43 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.09336, allocations: 7.984 kB / 332.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.105e-05/0.09341, allocations: 0 / 332.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.981e-05/0.09343, allocations: 4.562 kB / 332.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.09345, allocations: 8 kB / 332.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.401e-05/0.09349, allocations: 91.27 kB / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0935, allocations: 0 / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.09374, allocations: 16 kB / 333 MB, free: 15.3 MB / 286.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.0007032/0.09446, allocations: 0.8996 MB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001787/0.09465, allocations: 151.3 kB / 334.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.09466, allocations: 4 kB / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.475e-05/0.09474, allocations: 103.3 kB / 334.2 MB, free: 14.1 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.09494, allocations: 4 kB / 334.2 MB, free: 14.1 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.09618, allocations: 1.56 MB / 335.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.09643, allocations: 0.6848 MB / 336.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.476e-05/0.09645, allocations: 4 kB / 336.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.536e-05/0.09649, allocations: 15.42 kB / 336.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09649, allocations: 0 / 336.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01022/0.1067, allocations: 1.565 MB / 338 MB, free: 10.16 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000299/0.1071, allocations: 250.4 kB / 338.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/1.765, allocations: 0 / 338.2 MB, free: 9.891 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