Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 212 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 258.3 MB, free: 8.066 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 64.77 kB / 378.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2776, allocations: 53.37 MB / 431.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001666/0.2792, allocations: 480.7 kB / 432.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003037/0.2795, allocations: 71.7 kB / 432.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.363e-05/0.2796, allocations: 0 / 432.4 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.186e-05/0.2796, allocations: 4 kB / 432.4 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.075e-05/0.2797, allocations: 7.984 kB / 432.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001974/0.2799, allocations: 23.91 kB / 432.5 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.28, allocations: 23.97 kB / 432.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.504e-05/0.28, allocations: 8 kB / 432.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.396e-05/0.2801, allocations: 11.98 kB / 432.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.976e-05/0.2802, allocations: 31.89 kB / 432.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.2802, allocations: 0 / 432.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.664e-05/0.2802, allocations: 8 kB / 432.5 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.153e-05/0.2803, allocations: 7.125 kB / 432.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.637e-05/0.2803, allocations: 11.88 kB / 432.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.2805, allocations: 30.02 kB / 432.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.2805, allocations: 0 / 432.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2805, allocations: 0 / 432.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.2805, allocations: 4 kB / 432.6 MB, free: 6.223 MB / 334.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.0004297/0.2809, allocations: 291.9 kB / 432.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.2809, allocations: 8.031 kB / 432.9 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.037e-05/0.281, allocations: 38.7 kB / 432.9 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.281, allocations: 4.938 kB / 432.9 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.2812, allocations: 110.5 kB / 433 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.2812, allocations: 8.312 kB / 433 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.2812, allocations: 8.359 kB / 433.1 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.2813, allocations: 62.25 kB / 433.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2813, allocations: 7.938 kB / 433.1 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.2813, allocations: 7.922 kB / 433.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.2814, allocations: 4 kB / 433.1 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.939e-05/0.2814, allocations: 31.98 kB / 433.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002697/0.2817, allocations: 212 kB / 433.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.2818, allocations: 70.42 kB / 433.4 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.472e-05/0.2818, allocations: 48.89 kB / 433.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.2819, allocations: 4 kB / 433.5 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/0.2819, allocations: 64.27 kB / 433.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.2819, allocations: 0 / 433.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003563/0.2823, allocations: 207.7 kB / 433.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.2823, allocations: 81.11 kB / 433.8 MB, free: 4.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.458e-05/0.2824, allocations: 113.8 kB / 434 MB, free: 4.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.2824, allocations: 29.69 kB / 434 MB, free: 4.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/0.2825, allocations: 84.14 kB / 434.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.2825, allocations: 15.91 kB / 434.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.2826, allocations: 29.59 kB / 434.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.2827, allocations: 318.8 kB / 434.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.601e-05/0.2827, allocations: 31.98 kB / 434.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.872e-05/0.2828, allocations: 35.97 kB / 434.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001194/0.2829, allocations: 128.2 kB / 434.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2829, allocations: 384 / 434.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000192/0.2831, allocations: 179.2 kB / 434.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/0.2831, allocations: 40.5 kB / 434.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2831, allocations: 4.062 kB / 434.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2831, allocations: 4 kB / 434.8 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.877e-05/0.2832, allocations: 3.938 kB / 434.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.2832, allocations: 0 / 434.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.983e-05/0.2832, allocations: 4 kB / 434.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.2832, allocations: 4 kB / 434.8 MB, free: 3.73 MB / 334.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.0001205/0.2833, allocations: 160.5 kB / 435 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.2833, allocations: 7.953 kB / 435 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.26e-05/0.2834, allocations: 8.375 kB / 435 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.2834, allocations: 4 kB / 435 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2834, allocations: 4 kB / 435 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2834, allocations: 0 / 435 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004221/0.2838, allocations: 407.2 kB / 435.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2838, allocations: 0 / 435.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-06/0.2838, allocations: 4 kB / 435.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.2838, allocations: 0 / 435.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.2838, allocations: 4 kB / 435.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.2838, allocations: 4 kB / 435.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2838, allocations: 0 / 435.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.2841, allocations: 297.1 kB / 435.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.34e-05/0.2841, allocations: 11.97 kB / 435.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.2841, allocations: 0 / 435.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.509e-05/0.2842, allocations: 4 kB / 435.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.712e-05/0.2842, allocations: 7.938 kB / 435.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.2842, allocations: 4 kB / 435.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.224e-05/0.2843, allocations: 91.27 kB / 435.8 MB, free: 2.637 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2843, allocations: 4 kB / 435.8 MB, free: 2.633 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.2845, allocations: 12 kB / 435.9 MB, free: 2.621 MB / 334.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.0009142/0.2854, allocations: 0.9116 MB / 436.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002245/0.2857, allocations: 143.4 kB / 436.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2857, allocations: 4 kB / 436.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.912e-05/0.2858, allocations: 91.39 kB / 437 MB, free: 1.434 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.286, allocations: 7.984 kB / 437 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.2876, allocations: 1.554 MB / 438.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.288, allocations: 0.6846 MB / 439.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.605e-05/0.288, allocations: 0 / 439.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.757e-05/0.288, allocations: 15.44 kB / 439.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.288, allocations: 0 / 439.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02496/0.313, allocations: 1.952 MB / 441.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.98/8.293, allocations: 14.02 kB / 441.2 MB, free: 13.17 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.650177435949445] Failed to read output from testmodel.py, exit status != 0: ['time', 'success1', 'success2', 'success3', 'success4'] 8.421758279204369 8.438323143 8.154581771 Calling exit ...