Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.MATTest.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/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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(ExternData.Examples.MATTest,fileNamePrefix="ExternData_ExternData_Examples_MATTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.MATTest,fileNamePrefix="ExternData_ExternData_Examples_MATTest",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.00108/0.00108, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00118/0.001181, allocations: 191.5 kB / 16.14 MB, free: 6.648 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.212/1.212, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.121/0.121, allocations: 2.927 MB / 292.9 MB, free: 3.207 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 63.91 kB / 354.1 MB, free: 4.156 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07861/0.07981, allocations: 50.35 MB / 404.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.00249/0.08233, allocations: 1.548 MB / 406 MB, free: 212 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.08391, allocations: 1.261 MB / 407.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.493e-05/0.08398, allocations: 4 kB / 407.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002271/0.08422, allocations: 27.86 kB / 407.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.078e-05/0.0843, allocations: 27.91 kB / 407.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.08452, allocations: 55.89 kB / 407.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.246e-05/0.08461, allocations: 51.89 kB / 407.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.353e-05/0.08465, allocations: 12.2 kB / 407.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.095e-05/0.08471, allocations: 23.86 kB / 407.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.08486, allocations: 27.91 kB / 407.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.08488, allocations: 4 kB / 407.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.08502, allocations: 91.86 kB / 407.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.178e-05/0.08508, allocations: 15.92 kB / 407.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.466e-05/0.08514, allocations: 27.86 kB / 407.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.08533, allocations: 127.7 kB / 407.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.08534, allocations: 0 / 407.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.08535, allocations: 0 / 407.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.08536, allocations: 3.938 kB / 407.7 MB, free: 14.45 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004643/0.08583, allocations: 412.9 kB / 408.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.08587, allocations: 16.03 kB / 408.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.455e-05/0.08591, allocations: 42.67 kB / 408.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.08595, allocations: 8.844 kB / 408.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.08613, allocations: 200.1 kB / 408.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.434e-06/0.08615, allocations: 384 / 408.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.08616, allocations: 4.375 kB / 408.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.0863, allocations: 65.8 kB / 408.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.08631, allocations: 0 / 408.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.08632, allocations: 3.984 kB / 408.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.08633, allocations: 0 / 408.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.35e-05/0.0864, allocations: 31.98 kB / 408.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001614/0.08657, allocations: 185.6 kB / 408.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.058e-05/0.08665, allocations: 50.56 kB / 408.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.622e-05/0.08671, allocations: 40.89 kB / 408.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-06/0.08672, allocations: 0 / 408.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.08689, allocations: 109 kB / 408.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.0869, allocations: 4 kB / 408.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003005/0.08721, allocations: 187.2 kB / 409.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.08727, allocations: 85.09 kB / 409.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.08739, allocations: 141.7 kB / 409.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.08741, allocations: 29.7 kB / 409.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.54e-05/0.08745, allocations: 88.14 kB / 409.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.08749, allocations: 19.94 kB / 409.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.573e-05/0.08753, allocations: 21.72 kB / 409.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.08764, allocations: 322.8 kB / 409.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.494e-05/0.08769, allocations: 24 kB / 409.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.978e-05/0.08774, allocations: 27.98 kB / 409.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.08786, allocations: 124.3 kB / 409.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.08787, allocations: 7.938 kB / 409.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001895/0.08807, allocations: 163.2 kB / 410.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.08811, allocations: 33.7 kB / 410.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.08812, allocations: 3.984 kB / 410.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.08814, allocations: 0 / 410.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.498e-05/0.0882, allocations: 7.938 kB / 410.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.08821, allocations: 11.94 kB / 410.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.297e-05/0.08828, allocations: 11.84 kB / 410.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.08829, allocations: 0 / 410.2 MB, free: 11.73 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: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * 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.0001032/0.0884, allocations: 155.5 kB / 410.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.08843, allocations: 15.84 kB / 410.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.8e-05/0.08846, allocations: 4.375 kB / 410.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.08847, allocations: 7.984 kB / 410.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.08848, allocations: 0 / 410.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.08849, allocations: 4 kB / 410.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001247/0.08862, allocations: 181.6 kB / 410.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.08863, allocations: 3.938 kB / 410.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.85e-05/0.08865, allocations: 4.141 kB / 410.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.08866, allocations: 0 / 410.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.08867, allocations: 7.984 kB / 410.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.08868, allocations: 0 / 410.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.08868, allocations: 0 / 410.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.08894, allocations: 218.6 kB / 410.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-05/0.08899, allocations: 88.95 kB / 410.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.08902, allocations: 8 kB / 410.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.148e-05/0.08908, allocations: 7.984 kB / 410.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.08911, allocations: 4 kB / 410.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.08913, allocations: 0 / 410.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.151e-05/0.08921, allocations: 114.9 kB / 411 MB, free: 10.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08922, allocations: 0 / 411 MB, free: 10.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002245/0.08945, allocations: 40 kB / 411 MB, free: 10.77 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: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * 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.0009626/0.09042, allocations: 0.9179 MB / 411.9 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002021/0.09063, allocations: 163.3 kB / 412.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.09064, allocations: 0 / 412.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.09075, allocations: 123.4 kB / 412.2 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001768/0.09094, allocations: 11.98 kB / 412.2 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.0925, allocations: 1.674 MB / 413.9 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.09274, allocations: 0.6887 MB / 414.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.149e-05/0.09279, allocations: 11.94 kB / 414.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.472e-05/0.09284, allocations: 23.42 kB / 414.6 MB, free: 7.062 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09285, allocations: 0 / 414.6 MB, free: 7.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01309/0.1059, allocations: 2.697 MB / 417.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002171/0.1062, allocations: 219.3 kB / 417.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/1.762, allocations: 0 / 417.5 MB, free: 4.18 MB / 350.1 MB (rm -f ExternData_ExternData.Examples.MATTest.pipe ; mkfifo ExternData_ExternData.Examples.MATTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.MATTest.pipe >> ../files/ExternData_ExternData.Examples.MATTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_MATTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_MATTest.fmu > ExternData_ExternData.Examples.MATTest.pipe 2>&1)