Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3",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.001104/0.001104, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001152/0.001152, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.311/1.311, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2101/0.2101, allocations: 44.17 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.28 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1105, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.002154/0.1127, allocations: 491 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.1152, allocations: 1.509 MB / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.665e-05/0.1153, allocations: 0 / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.755e-05/0.1153, allocations: 0 / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.832e-06/0.1153, allocations: 8 kB / 471.4 MB, free: 12.26 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:576:3-610:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices3' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.1164, allocations: 227.3 kB / 471.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.003e-05/0.1164, allocations: 4 kB / 471.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.557e-05/0.1165, allocations: 7.984 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.446e-05/0.1165, allocations: 0 / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.571e-05/0.1165, allocations: 7.938 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.959e-06/0.1165, allocations: 4 kB / 471.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009435/0.1175, allocations: 0.6947 MB / 472.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.687e-06/0.1175, allocations: 3.938 kB / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.874e-05/0.1175, allocations: 7.938 kB / 472.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008174/0.1184, allocations: 0.6396 MB / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.1184, allocations: 0 / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1184, allocations: 0 / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1184, allocations: 0 / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0006366/0.119, allocations: 361.3 kB / 473.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.1191, allocations: 11.97 kB / 473.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.548e-05/0.1191, allocations: 34.75 kB / 473.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.838e-05/0.1192, allocations: 0.9375 kB / 473.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.1193, allocations: 168.4 kB / 473.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.1193, allocations: 384 / 473.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.1193, allocations: 384 / 473.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.926e-05/0.1195, allocations: 37.81 kB / 473.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.1195, allocations: 0 / 473.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.1195, allocations: 0 / 473.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.1195, allocations: 0 / 473.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.859e-05/0.1195, allocations: 3.938 kB / 473.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.1197, allocations: 145.7 kB / 473.7 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.929e-05/0.1197, allocations: 22.52 kB / 473.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.344e-05/0.1197, allocations: 16.94 kB / 473.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.1197, allocations: 0 / 473.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.1198, allocations: 60.2 kB / 473.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.1198, allocations: 0 / 473.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001519/0.12, allocations: 63.34 kB / 473.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.12, allocations: 81.22 kB / 473.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.526e-05/0.1201, allocations: 93.86 kB / 474 MB, free: 9.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.1201, allocations: 29.7 kB / 474 MB, free: 9.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.261e-05/0.1201, allocations: 80.14 kB / 474.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.1201, allocations: 4 kB / 474.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.1202, allocations: 9.719 kB / 474.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1203, allocations: 310.8 kB / 474.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-06/0.1203, allocations: 0 / 474.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.975e-06/0.1203, allocations: 4 kB / 474.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.575e-05/0.1204, allocations: 64.33 kB / 474.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1204, allocations: 0 / 474.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.837e-05/0.1204, allocations: 67.33 kB / 474.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.1205, allocations: 37.64 kB / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1205, allocations: 0 / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.1205, allocations: 0 / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.1205, allocations: 0 / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.1205, allocations: 0 / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.558e-05/0.1205, allocations: 0 / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.1206, allocations: 7.969 kB / 474.6 MB, free: 8.703 MB / 350.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 8.14e-05/0.1206, allocations: 139.5 kB / 474.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.1207, allocations: 7.844 kB / 474.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.072e-05/0.1207, allocations: 3.125 kB / 474.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.1207, allocations: 0 / 474.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1207, allocations: 8 kB / 474.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1207, allocations: 0 / 474.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001014/0.1208, allocations: 149.7 kB / 474.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1208, allocations: 0 / 474.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.066e-06/0.1208, allocations: 4 kB / 474.9 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1208, allocations: 7.875 kB / 474.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1208, allocations: 4 kB / 474.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1209, allocations: 0 / 474.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1209, allocations: 0 / 474.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.121, allocations: 94.75 kB / 475 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.327e-05/0.121, allocations: 85.05 kB / 475.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.121, allocations: 0 / 475.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.987e-06/0.121, allocations: 4.031 kB / 475.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.503e-05/0.1211, allocations: 0 / 475.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-06/0.1211, allocations: 0 / 475.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.278e-05/0.1211, allocations: 79.28 kB / 475.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1211, allocations: 0 / 475.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004747/0.1216, allocations: 120.3 kB / 475.3 MB, free: 7.902 MB / 350.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.001041/0.1226, allocations: 0.6997 MB / 476 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.813e-05/0.1228, allocations: 63.38 kB / 476.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1228, allocations: 4 kB / 476.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.468e-05/0.1228, allocations: 59.39 kB / 476.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.123, allocations: 3.938 kB / 476.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004007/0.1234, allocations: 126.6 kB / 476.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.1236, allocations: 0.669 MB / 476.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.432e-06/0.1236, allocations: 0 / 476.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.507e-05/0.1237, allocations: 7.438 kB / 476.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1237, allocations: 4.125 kB / 476.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.1474, allocations: 4.684 MB / 481.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.572/8.719, allocations: 17.02 kB / 481.6 MB, free: 1.496 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe 2>&1)