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.001345/0.001345, allocations: 86.89 kB / 16.31 MB, free: 6.449 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.001653/0.001653, allocations: 180.9 kB / 17.21 MB, free: 6.32 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.353/1.353, allocations: 223.3 MB / 241.2 MB, free: 5.246 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002206/0.0002206, allocations: 5.688 kB / 300.9 MB, free: 5.516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08194/0.08218, allocations: 50.42 MB / 351.3 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.000483/0.0827, allocations: 213.7 kB / 351.5 MB, free: 11.1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001757/0.08288, allocations: 47.83 kB / 351.6 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.649e-05/0.08291, allocations: 4 kB / 351.6 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.848e-05/0.08294, allocations: 4 kB / 351.6 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.335e-05/0.083, allocations: 7.984 kB / 351.6 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001138/0.08312, allocations: 23.97 kB / 351.6 MB, free: 11.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.116e-05/0.08317, allocations: 15.92 kB / 351.6 MB, free: 11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.731e-05/0.08321, allocations: 4 kB / 351.6 MB, free: 11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.11e-05/0.08324, allocations: 7.984 kB / 351.6 MB, free: 10.99 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.37e-05/0.08329, allocations: 23.97 kB / 351.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.08332, allocations: 4 kB / 351.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.323e-05/0.08335, allocations: 4 kB / 351.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.251e-05/0.0834, allocations: 11.92 kB / 351.7 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.066e-05/0.08344, allocations: 33.64 kB / 351.7 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.698e-05/0.08352, allocations: 15.98 kB / 351.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.08353, allocations: 3.984 kB / 351.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08354, allocations: 0 / 351.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.856e-06/0.08355, allocations: 4 kB / 351.7 MB, free: 10.88 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.00029/0.08384, allocations: 357 kB / 352.1 MB, free: 10.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.08388, allocations: 8.031 kB / 352.1 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.663e-05/0.08394, allocations: 34.47 kB / 352.1 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.287e-05/0.08397, allocations: 11.95 kB / 352.1 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.08408, allocations: 178.9 kB / 352.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.315e-06/0.08409, allocations: 3.938 kB / 352.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.08411, allocations: 4 kB / 352.3 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.08422, allocations: 65.67 kB / 352.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.52e-06/0.08423, allocations: 0 / 352.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.08425, allocations: 0 / 352.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.08426, allocations: 11.89 kB / 352.4 MB, free: 10.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.328e-05/0.08431, allocations: 31.98 kB / 352.4 MB, free: 10.08 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000216/0.08453, allocations: 252.9 kB / 352.7 MB, free: 9.785 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.472e-05/0.08462, allocations: 63.62 kB / 352.7 MB, free: 9.715 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.389e-05/0.08468, allocations: 48.89 kB / 352.8 MB, free: 9.664 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.571e-06/0.08469, allocations: 0 / 352.8 MB, free: 9.664 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.08473, allocations: 64.27 kB / 352.9 MB, free: 9.586 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 7.92e-07/0.08474, allocations: 0 / 352.9 MB, free: 9.586 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002856/0.08503, allocations: 211.4 kB / 353.1 MB, free: 9.367 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.08509, allocations: 85.11 kB / 353.1 MB, free: 9.266 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.111e-05/0.08516, allocations: 117.7 kB / 353.3 MB, free: 9.141 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.08519, allocations: 29.7 kB / 353.3 MB, free: 9.105 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/0.08525, allocations: 80.14 kB / 353.4 MB, free: 9.023 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.08528, allocations: 19.75 kB / 353.4 MB, free: 9.004 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-06/0.08529, allocations: 0 / 353.4 MB, free: 9.004 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.08541, allocations: 318.8 kB / 353.7 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.621e-05/0.08545, allocations: 31.98 kB / 353.7 MB, free: 8.652 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.164e-05/0.08549, allocations: 35.98 kB / 353.8 MB, free: 8.617 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.41e-05/0.08556, allocations: 65.62 kB / 353.8 MB, free: 8.547 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.08557, allocations: 0 / 353.8 MB, free: 8.547 MB / 286.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001606/0.08573, allocations: 171.5 kB / 354 MB, free: 8.367 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.08578, allocations: 35.89 kB / 354 MB, free: 8.328 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.08579, allocations: 4.438 kB / 354 MB, free: 8.324 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.08581, allocations: 3.953 kB / 354 MB, free: 8.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.604e-05/0.08583, allocations: 3.984 kB / 354 MB, free: 8.316 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.08584, allocations: 3.984 kB / 354 MB, free: 8.312 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.052e-05/0.08586, allocations: 8 kB / 354.1 MB, free: 8.305 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.08588, allocations: 7.984 kB / 354.1 MB, free: 8.297 MB / 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 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.534e-05/0.08597, allocations: 147.5 kB / 354.2 MB, free: 8.137 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.43e-05/0.086, allocations: 7.906 kB / 354.2 MB, free: 8.129 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.421e-05/0.08603, allocations: 8.375 kB / 354.2 MB, free: 8.117 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.08603, allocations: 0 / 354.2 MB, free: 8.117 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.08604, allocations: 3.953 kB / 354.2 MB, free: 8.113 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.08605, allocations: 0 / 354.2 MB, free: 8.113 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003492/0.0864, allocations: 444.2 kB / 354.7 MB, free: 7.617 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.08641, allocations: 0 / 354.7 MB, free: 7.617 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-06/0.08642, allocations: 0 / 354.7 MB, free: 7.617 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.08643, allocations: 0 / 354.7 MB, free: 7.617 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.08644, allocations: 7.953 kB / 354.7 MB, free: 7.609 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.08645, allocations: 0 / 354.7 MB, free: 7.609 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.08645, allocations: 0 / 354.7 MB, free: 7.609 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002175/0.08667, allocations: 289 kB / 354.9 MB, free: 7.305 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.259e-05/0.08671, allocations: 88.98 kB / 355 MB, free: 7.199 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.08674, allocations: 7.938 kB / 355 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.233e-05/0.08678, allocations: 7.953 kB / 355 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.395e-05/0.08681, allocations: 7.984 kB / 355.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.08682, allocations: 4 kB / 355.1 MB, free: 7.172 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.903e-05/0.08687, allocations: 91.27 kB / 355.1 MB, free: 7.082 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.08687, allocations: 0 / 355.1 MB, free: 7.082 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002098/0.08708, allocations: 16 kB / 355.2 MB, free: 7.066 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007135/0.0878, allocations: 0.8873 MB / 356.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.08797, allocations: 151.3 kB / 356.2 MB, free: 6 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.08798, allocations: 0 / 356.2 MB, free: 6 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.974e-05/0.08807, allocations: 103.4 kB / 356.3 MB, free: 5.887 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.08827, allocations: 18.7 kB / 356.3 MB, free: 5.871 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006848/0.08896, allocations: 0.5707 MB / 356.9 MB, free: 5.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.08922, allocations: 0.6848 MB / 357.6 MB, free: 4.539 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.034e-05/0.08924, allocations: 4 kB / 357.6 MB, free: 4.535 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.259e-05/0.08927, allocations: 19.44 kB / 357.6 MB, free: 4.516 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08927, allocations: 0 / 357.6 MB, free: 4.516 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01032/0.09959, allocations: 1.549 MB / 359.1 MB, free: 3.105 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002218/0.09984, allocations: 244.9 kB / 359.4 MB, free: 2.859 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.469/1.569, allocations: 4 kB / 359.4 MB, free: 2.855 MB / 286.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat