Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",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.001634/0.001634, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001781/0.001781, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.496/1.496, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2376/0.2376, allocations: 44.2 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3853/0.3873, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001826/0.3891, allocations: 497 kB / 0.5189 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002245/0.3914, allocations: 1.56 MB / 0.5204 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.686e-05/0.3914, allocations: 0 / 0.5204 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.28e-05/0.3915, allocations: 0 / 0.5204 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.701e-06/0.3915, allocations: 0 / 0.5204 GB, free: 1.859 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.0009137/0.3924, allocations: 276 kB / 0.5207 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.329e-05/0.3925, allocations: 1.438 kB / 0.5207 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.596e-05/0.3925, allocations: 2.047 kB / 0.5207 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.467e-05/0.3925, allocations: 5.469 kB / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2e-05/0.3926, allocations: 0 / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.3926, allocations: 1.219 kB / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008103/0.3934, allocations: 497.7 kB / 0.5212 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.794e-06/0.3934, allocations: 0 / 0.5212 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.549e-05/0.3934, allocations: 0.9375 kB / 0.5212 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005246/0.394, allocations: 300.8 kB / 0.5214 GB, free: 1.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.394, allocations: 0 / 0.5214 GB, free: 1.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.394, allocations: 5.344 kB / 0.5215 GB, free: 1.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.394, allocations: 0 / 0.5215 GB, free: 1.598 MB / 382.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.0003569/0.3944, allocations: 381 kB / 0.5218 GB, free: 1.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.3944, allocations: 9.969 kB / 0.5218 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.759e-05/0.3945, allocations: 32.22 kB / 0.5219 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.79e-05/0.3945, allocations: 0.9375 kB / 0.5219 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.532e-05/0.3946, allocations: 161.8 kB / 0.522 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-06/0.3946, allocations: 1.5 kB / 0.522 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.3946, allocations: 1.75 kB / 0.522 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.479e-05/0.3947, allocations: 40.78 kB / 0.5221 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.3947, allocations: 0 / 0.5221 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3947, allocations: 1.312 kB / 0.5221 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.3947, allocations: 3.938 kB / 0.5221 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.21e-05/0.3948, allocations: 1.906 kB / 0.5221 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001183/0.3949, allocations: 148.7 kB / 0.5222 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.513e-05/0.3949, allocations: 16.53 kB / 0.5222 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.649e-05/0.395, allocations: 15.88 kB / 0.5222 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.395, allocations: 0 / 0.5222 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.395, allocations: 61.2 kB / 0.5223 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.163e-06/0.395, allocations: 0 / 0.5223 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001992/0.3952, allocations: 65.27 kB / 0.5224 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.3953, allocations: 79.03 kB / 0.5224 GB, free: 452 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.653e-05/0.3953, allocations: 90.95 kB / 0.5225 GB, free: 352 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.3953, allocations: 25.7 kB / 0.5225 GB, free: 320 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.805e-05/0.3954, allocations: 84.97 kB / 0.5226 GB, free: 232 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.3954, allocations: 5.484 kB / 0.5226 GB, free: 228 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.3954, allocations: 12.33 kB / 0.5226 GB, free: 212 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3955, allocations: 311.5 kB / 0.5229 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.3956, allocations: 1.125 kB / 0.5229 GB, free: 15.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.004e-05/0.3956, allocations: 9.703 kB / 0.5229 GB, free: 15.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.888e-05/0.3957, allocations: 64.38 kB / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3957, allocations: 5.344 kB / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.974e-05/0.3958, allocations: 58.58 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/0.3958, allocations: 37.64 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3958, allocations: 3.938 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3958, allocations: 1.094 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.3958, allocations: 0 / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.3959, allocations: 5.141 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.827e-05/0.3959, allocations: 0 / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.3959, allocations: 1.281 kB / 0.5231 GB, free: 15.7 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 0.0001311/0.396, allocations: 143.3 kB / 0.5233 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.337e-05/0.396, allocations: 13.56 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.15e-05/0.3961, allocations: 3.125 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.3961, allocations: 0.7031 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.3961, allocations: 1.094 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.3961, allocations: 0 / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000142/0.3962, allocations: 146 kB / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3962, allocations: 0.6094 kB / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3962, allocations: 0 / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.3963, allocations: 5.188 kB / 0.5234 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.3963, allocations: 4.703 kB / 0.5234 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.3963, allocations: 1.156 kB / 0.5234 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3963, allocations: 0 / 0.5234 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.3964, allocations: 88.97 kB / 0.5235 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-05/0.3965, allocations: 90.75 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.3965, allocations: 1.281 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.678e-06/0.3965, allocations: 0.7031 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.774e-05/0.3965, allocations: 1.125 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-06/0.3965, allocations: 5.984 kB / 0.5236 GB, free: 15.13 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.918e-05/0.3966, allocations: 75.28 kB / 0.5237 GB, free: 15.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3966, allocations: 3.938 kB / 0.5237 GB, free: 15.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003649/0.397, allocations: 66.45 kB / 0.5237 GB, free: 15.04 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.0008163/0.3978, allocations: 0.7116 MB / 0.5244 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001099/0.3979, allocations: 65.39 kB / 0.5245 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3979, allocations: 3.938 kB / 0.5245 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.376e-05/0.398, allocations: 60.12 kB / 0.5246 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.3981, allocations: 6.938 kB / 0.5246 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003509/0.3985, allocations: 127.5 kB / 0.5247 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.3988, allocations: 0.6748 MB / 0.5253 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.3988, allocations: 0 / 0.5253 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.89e-05/0.3989, allocations: 9.453 kB / 0.5254 GB, free: 13.39 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3989, allocations: 4.125 kB / 0.5254 GB, free: 13.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.4239, allocations: 2.09 MB / 0.5274 GB, free: 12.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.993/8.417, allocations: 10.38 kB / 0.5274 GB, free: 12.71 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1)