Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001232/0.001232, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2071/0.2071, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3118, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001705/0.3136, allocations: 496.2 kB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00322/0.3168, allocations: 2.145 MB / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.148e-05/0.3168, allocations: 0 / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.178e-05/0.3169, allocations: 0 / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.873e-06/0.3169, allocations: 3.938 kB / 0.5331 GB, free: 11.36 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:485:3-574:17:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2b' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002042/0.3189, allocations: 0.7263 MB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.232e-05/0.319, allocations: 1.375 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.802e-05/0.319, allocations: 1.375 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.397e-05/0.3191, allocations: 0 / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.645e-05/0.3191, allocations: 5.375 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-06/0.3191, allocations: 0 / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002002/0.3211, allocations: 1.508 MB / 0.5353 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.845e-06/0.3211, allocations: 0 / 0.5353 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.588e-05/0.3212, allocations: 1.094 kB / 0.5353 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001776/0.3229, allocations: 1.555 MB / 0.5368 GB, free: 9.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.3229, allocations: 0 / 0.5368 GB, free: 9.422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.323, allocations: 4 kB / 0.5368 GB, free: 9.418 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.177e-06/0.323, allocations: 1.75 kB / 0.5368 GB, free: 9.418 MB / 398.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.0008666/0.3238, allocations: 411.1 kB / 0.5372 GB, free: 8.988 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.3239, allocations: 10.72 kB / 0.5372 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.335e-05/0.3239, allocations: 34.75 kB / 0.5372 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.228e-05/0.3239, allocations: 0.9375 kB / 0.5372 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.22e-05/0.324, allocations: 161.8 kB / 0.5374 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.3241, allocations: 384 / 0.5374 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.3241, allocations: 12.89 kB / 0.5374 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.584e-05/0.3242, allocations: 35.94 kB / 0.5374 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.3242, allocations: 0 / 0.5374 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.3242, allocations: 1.156 kB / 0.5374 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/0.3242, allocations: 0 / 0.5374 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.865e-05/0.3242, allocations: 5.078 kB / 0.5374 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001245/0.3243, allocations: 142.9 kB / 0.5376 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.063e-05/0.3244, allocations: 28.75 kB / 0.5376 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.332e-05/0.3244, allocations: 17.77 kB / 0.5376 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.729e-06/0.3244, allocations: 5.188 kB / 0.5376 GB, free: 8.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.3245, allocations: 57.36 kB / 0.5377 GB, free: 8.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3245, allocations: 0 / 0.5377 GB, free: 8.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001522/0.3246, allocations: 62.11 kB / 0.5377 GB, free: 8.312 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.3247, allocations: 82.25 kB / 0.5378 GB, free: 8.215 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.51e-05/0.3247, allocations: 93.86 kB / 0.5379 GB, free: 8.113 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.3248, allocations: 26.89 kB / 0.5379 GB, free: 8.082 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.742e-05/0.3248, allocations: 84.27 kB / 0.538 GB, free: 7.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.634e-05/0.3248, allocations: 1.094 kB / 0.538 GB, free: 7.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.629e-05/0.3248, allocations: 12.12 kB / 0.538 GB, free: 7.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.759e-05/0.3249, allocations: 314.8 kB / 0.5383 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.328e-05/0.325, allocations: 5.156 kB / 0.5383 GB, free: 7.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.102e-06/0.325, allocations: 1.375 kB / 0.5383 GB, free: 7.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.415e-05/0.325, allocations: 63.27 kB / 0.5384 GB, free: 7.586 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.325, allocations: 64 / 0.5384 GB, free: 7.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.3e-05/0.3251, allocations: 69.52 kB / 0.5384 GB, free: 7.512 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.3252, allocations: 31.61 kB / 0.5385 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.3252, allocations: 1.188 kB / 0.5385 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.3252, allocations: 0 / 0.5385 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.3252, allocations: 0 / 0.5385 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.3252, allocations: 1.125 kB / 0.5385 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.427e-05/0.3252, allocations: 0 / 0.5385 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.3252, allocations: 1.125 kB / 0.5385 GB, free: 7.48 MB / 398.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.073e-05/0.3253, allocations: 145.8 kB / 0.5386 GB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.027e-05/0.3253, allocations: 5.031 kB / 0.5386 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.308e-06/0.3253, allocations: 7.125 kB / 0.5386 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3253, allocations: 0.8438 kB / 0.5386 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.3254, allocations: 0 / 0.5386 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.3254, allocations: 1.125 kB / 0.5386 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.393e-05/0.3254, allocations: 154.5 kB / 0.5388 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3255, allocations: 0.9062 kB / 0.5388 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.71e-07/0.3255, allocations: 0 / 0.5388 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3255, allocations: 1.125 kB / 0.5388 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.3255, allocations: 0 / 0.5388 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.3255, allocations: 5.188 kB / 0.5388 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3255, allocations: 3.938 kB / 0.5388 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.073e-05/0.3256, allocations: 93.02 kB / 0.5389 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.145e-05/0.3256, allocations: 82.17 kB / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/0.3256, allocations: 1 kB / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-06/0.3257, allocations: 0.9062 kB / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.042e-05/0.3257, allocations: 0.9688 kB / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.3257, allocations: 7.969 kB / 0.539 GB, free: 6.898 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.076e-05/0.3257, allocations: 80.38 kB / 0.539 GB, free: 6.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3257, allocations: 0 / 0.539 GB, free: 6.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001198/0.3269, allocations: 275.5 kB / 0.5393 GB, free: 6.785 MB / 398.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.001502/0.3284, allocations: 0.9385 MB / 0.5402 GB, free: 5.992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.897e-05/0.3285, allocations: 55.84 kB / 0.5403 GB, free: 5.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3285, allocations: 1.438 kB / 0.5403 GB, free: 5.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.197e-05/0.3286, allocations: 58 kB / 0.5403 GB, free: 5.863 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.3287, allocations: 3.719 kB / 0.5403 GB, free: 5.863 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004117/0.3291, allocations: 167.4 kB / 0.5405 GB, free: 5.691 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001933/0.3293, allocations: 0.6699 MB / 0.5412 GB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.721e-06/0.3293, allocations: 1.219 kB / 0.5412 GB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.3293, allocations: 12.62 kB / 0.5412 GB, free: 4.984 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3294, allocations: 0 / 0.5412 GB, free: 4.984 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.3563, allocations: 8.209 MB / 0.5492 GB, free: 14.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.5/7.856, allocations: 8.016 kB / 0.5492 GB, free: 14.21 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)