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.001632/0.001632, allocations: 109.5 kB / 17.78 MB, free: 5.312 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.001712/0.001712, allocations: 188 kB / 18.71 MB, free: 4.387 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.336/1.336, allocations: 222.9 MB / 242.4 MB, free: 15.21 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.2025/0.2025, allocations: 44.18 MB / 336.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001302, allocations: 59.91 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3519, allocations: 60.82 MB / 0.5184 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001501/0.3534, allocations: 0.4893 MB / 0.5189 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.3553, allocations: 1.567 MB / 0.5204 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.977e-05/0.3554, allocations: 0 / 0.5204 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.548e-05/0.3554, allocations: 0 / 0.5204 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.263e-06/0.3554, allocations: 3.938 kB / 0.5204 GB, free: 1.875 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.0008898/0.3563, allocations: 269.3 kB / 0.5207 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.895e-05/0.3564, allocations: 1.312 kB / 0.5207 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.422e-05/0.3564, allocations: 5.938 kB / 0.5207 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.793e-05/0.3565, allocations: 1.781 kB / 0.5207 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.202e-05/0.3565, allocations: 0.6094 kB / 0.5207 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-06/0.3565, allocations: 0 / 0.5207 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007801/0.3573, allocations: 497.5 kB / 0.5212 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.413e-06/0.3573, allocations: 0 / 0.5212 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.82e-05/0.3573, allocations: 1.031 kB / 0.5212 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004966/0.3578, allocations: 304.7 kB / 0.5214 GB, free: 1.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3578, allocations: 1.281 kB / 0.5214 GB, free: 1.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3578, allocations: 0 / 0.5214 GB, free: 1.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3579, allocations: 0 / 0.5214 GB, free: 1.617 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.0003014/0.3582, allocations: 376.3 kB / 0.5218 GB, free: 1.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.3582, allocations: 9.969 kB / 0.5218 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.134e-05/0.3582, allocations: 35.31 kB / 0.5218 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.218e-05/0.3583, allocations: 2.031 kB / 0.5219 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.777e-05/0.3583, allocations: 161.8 kB / 0.522 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.3583, allocations: 1.469 kB / 0.522 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.3583, allocations: 1.469 kB / 0.522 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.71e-05/0.3584, allocations: 41.39 kB / 0.522 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.3584, allocations: 0 / 0.522 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.3584, allocations: 1.062 kB / 0.522 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.3585, allocations: 0 / 0.522 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.622e-05/0.3585, allocations: 1.719 kB / 0.522 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.26e-05/0.3586, allocations: 148.7 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.488e-05/0.3586, allocations: 21.52 kB / 0.5222 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.305e-05/0.3586, allocations: 6.109 kB / 0.5222 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.3586, allocations: 3.938 kB / 0.5222 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.3587, allocations: 71.64 kB / 0.5223 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3587, allocations: 0 / 0.5223 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001504/0.3588, allocations: 73.34 kB / 0.5224 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.3589, allocations: 77.86 kB / 0.5224 GB, free: 464 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.83e-05/0.3589, allocations: 90.92 kB / 0.5225 GB, free: 364 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.352e-06/0.3589, allocations: 25.7 kB / 0.5225 GB, free: 332 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.998e-06/0.3589, allocations: 80.14 kB / 0.5226 GB, free: 248 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.3589, allocations: 5 kB / 0.5226 GB, free: 244 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.481e-05/0.359, allocations: 12.83 kB / 0.5226 GB, free: 228 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.997e-05/0.3591, allocations: 312.9 kB / 0.5229 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.759e-06/0.3591, allocations: 4.125 kB / 0.5229 GB, free: 15.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.023e-06/0.3591, allocations: 6.469 kB / 0.5229 GB, free: 15.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.859e-05/0.3591, allocations: 60.22 kB / 0.523 GB, free: 15.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3592, allocations: 0 / 0.523 GB, free: 15.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.794e-05/0.3592, allocations: 67.73 kB / 0.5231 GB, free: 15.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.3593, allocations: 36.39 kB / 0.5231 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.3593, allocations: 1.094 kB / 0.5231 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3593, allocations: 0 / 0.5231 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.392e-06/0.3593, allocations: 5.25 kB / 0.5231 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3593, allocations: 0.6562 kB / 0.5231 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.823e-05/0.3593, allocations: 4.969 kB / 0.5231 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3593, allocations: 0 / 0.5231 GB, free: 15.72 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.55e-05/0.3594, allocations: 135 kB / 0.5232 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.3594, allocations: 5.734 kB / 0.5232 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.969e-06/0.3595, allocations: 9 kB / 0.5233 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3595, allocations: 0.6562 kB / 0.5233 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3595, allocations: 0 / 0.5233 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3595, allocations: 4 kB / 0.5233 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001023/0.3596, allocations: 152.7 kB / 0.5234 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3596, allocations: 0 / 0.5234 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3596, allocations: 0 / 0.5234 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.3596, allocations: 5.703 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.3596, allocations: 0 / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3596, allocations: 1 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3596, allocations: 0.6562 kB / 0.5234 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.865e-05/0.3597, allocations: 92.33 kB / 0.5235 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.205e-05/0.3598, allocations: 83.61 kB / 0.5236 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.3598, allocations: 1.031 kB / 0.5236 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.3598, allocations: 0.5625 kB / 0.5236 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.345e-05/0.3598, allocations: 4.969 kB / 0.5236 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.3598, allocations: 1.688 kB / 0.5236 GB, free: 15.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.203e-05/0.3599, allocations: 75.28 kB / 0.5237 GB, free: 15.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.744e-06/0.3599, allocations: 0 / 0.5237 GB, free: 15.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.3602, allocations: 66.95 kB / 0.5237 GB, free: 15.07 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.0008718/0.3611, allocations: 0.7196 MB / 0.5244 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001346/0.3612, allocations: 58.41 kB / 0.5245 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.3613, allocations: 1.125 kB / 0.5245 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.309e-05/0.3613, allocations: 59.84 kB / 0.5245 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.3615, allocations: 1.859 kB / 0.5245 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003716/0.3619, allocations: 131.6 kB / 0.5247 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.3622, allocations: 0.6749 MB / 0.5253 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.137e-06/0.3623, allocations: 1.656 kB / 0.5253 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.869e-05/0.3623, allocations: 8.469 kB / 0.5253 GB, free: 13.42 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3623, allocations: 0 / 0.5253 GB, free: 13.42 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.3817, allocations: 2.09 MB / 0.5274 GB, free: 12.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.184/7.566, allocations: 6.344 kB / 0.5274 GB, free: 12.75 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)