Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001215/0.001215, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2229/0.2229, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3284, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001873/0.3303, allocations: 487.5 kB / 0.531 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.3326, allocations: 1.614 MB / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.012e-05/0.3327, allocations: 0 / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.879e-05/0.3327, allocations: 0 / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.833e-06/0.3327, allocations: 0 / 0.5325 GB, free: 11.79 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.3338, allocations: 281.3 kB / 0.5328 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.755e-05/0.3339, allocations: 1.375 kB / 0.5328 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.296e-05/0.334, allocations: 5.359 kB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.831e-05/0.334, allocations: 0 / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.371e-05/0.334, allocations: 1.375 kB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.334, allocations: 0 / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008511/0.3349, allocations: 494.2 kB / 0.5333 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.377e-06/0.3349, allocations: 1.062 kB / 0.5333 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.491e-05/0.3349, allocations: 7.984 kB / 0.5333 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.3354, allocations: 316.8 kB / 0.5336 GB, free: 11.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3354, allocations: 1.219 kB / 0.5336 GB, free: 11.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3354, allocations: 0 / 0.5336 GB, free: 11.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.281e-06/0.3354, allocations: 0 / 0.5336 GB, free: 11.22 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.0003985/0.3358, allocations: 371.3 kB / 0.534 GB, free: 10.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.3359, allocations: 9.062 kB / 0.534 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.942e-05/0.3359, allocations: 30.75 kB / 0.534 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.867e-05/0.336, allocations: 6.312 kB / 0.534 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.3361, allocations: 172.4 kB / 0.5342 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.3361, allocations: 384 / 0.5342 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.3361, allocations: 1.781 kB / 0.5342 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.331e-05/0.3362, allocations: 32.05 kB / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.3362, allocations: 0 / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.824e-06/0.3362, allocations: 1.188 kB / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.3362, allocations: 0 / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.847e-05/0.3363, allocations: 1.219 kB / 0.5342 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001354/0.3364, allocations: 147 kB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.846e-05/0.3365, allocations: 29.05 kB / 0.5344 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.561e-05/0.3365, allocations: 6.078 kB / 0.5344 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.936e-06/0.3365, allocations: 3.938 kB / 0.5344 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.3365, allocations: 61.33 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3366, allocations: 0 / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001717/0.3367, allocations: 67.89 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.3368, allocations: 81.23 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.54e-05/0.3368, allocations: 95.05 kB / 0.5347 GB, free: 9.949 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.3369, allocations: 25.7 kB / 0.5347 GB, free: 9.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.189e-05/0.3369, allocations: 84.08 kB / 0.5348 GB, free: 9.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.132e-05/0.3369, allocations: 4.969 kB / 0.5348 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.3369, allocations: 11.94 kB / 0.5348 GB, free: 9.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.536e-05/0.337, allocations: 312.2 kB / 0.5351 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.896e-06/0.3371, allocations: 0 / 0.5351 GB, free: 9.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-06/0.3371, allocations: 1.062 kB / 0.5351 GB, free: 9.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.85e-05/0.3371, allocations: 71.47 kB / 0.5352 GB, free: 9.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3371, allocations: 1.375 kB / 0.5352 GB, free: 9.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.193e-05/0.3372, allocations: 61.47 kB / 0.5352 GB, free: 9.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.951e-05/0.3372, allocations: 35.61 kB / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3373, allocations: 0 / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.3373, allocations: 1.062 kB / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.3373, allocations: 0 / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.3373, allocations: 3.984 kB / 0.5353 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.939e-05/0.3373, allocations: 9.156 kB / 0.5353 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.852e-06/0.3373, allocations: 1.375 kB / 0.5353 GB, free: 9.305 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 7.423e-05/0.3374, allocations: 132.9 kB / 0.5354 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.826e-06/0.3374, allocations: 5.312 kB / 0.5354 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.897e-06/0.3374, allocations: 3.125 kB / 0.5354 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3374, allocations: 1.375 kB / 0.5354 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3374, allocations: 0 / 0.5354 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3375, allocations: 0 / 0.5354 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.102e-05/0.3376, allocations: 153.3 kB / 0.5355 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3376, allocations: 5.375 kB / 0.5355 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.3376, allocations: 0 / 0.5355 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3376, allocations: 7.938 kB / 0.5356 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.3376, allocations: 1.375 kB / 0.5356 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.3376, allocations: 0 / 0.5356 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3376, allocations: 1.375 kB / 0.5356 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.883e-05/0.3377, allocations: 93.77 kB / 0.5356 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.872e-05/0.3377, allocations: 81.05 kB / 0.5357 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.3377, allocations: 5.406 kB / 0.5357 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.3378, allocations: 0 / 0.5357 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.458e-05/0.3378, allocations: 1.375 kB / 0.5357 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.3378, allocations: 1.375 kB / 0.5357 GB, free: 8.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.578e-05/0.3378, allocations: 79.22 kB / 0.5358 GB, free: 8.664 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3378, allocations: 3.938 kB / 0.5358 GB, free: 8.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00034/0.3382, allocations: 64.11 kB / 0.5359 GB, free: 8.645 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.000692/0.3389, allocations: 0.7218 MB / 0.5366 GB, free: 7.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.903e-05/0.339, allocations: 64.83 kB / 0.5366 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.339, allocations: 0 / 0.5366 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.136e-05/0.339, allocations: 58.16 kB / 0.5367 GB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.3392, allocations: 2.75 kB / 0.5367 GB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003239/0.3395, allocations: 127.2 kB / 0.5368 GB, free: 7.672 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/0.3397, allocations: 0.6743 MB / 0.5375 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.54e-06/0.3397, allocations: 0 / 0.5375 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.397e-05/0.3398, allocations: 8.812 kB / 0.5375 GB, free: 6.965 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3398, allocations: 0 / 0.5375 GB, free: 6.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03145/0.3712, allocations: 2.098 MB / 0.5395 GB, free: 5.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.481/7.852, allocations: 2.938 kB / 0.5395 GB, free: 5.77 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1)