Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TestBrush.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/Modelica 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/HanserModelica 2.0.0/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",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.0008385/0.0008388, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.368/1.368, allocations: 223.2 MB / 239 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009433/0.0009433, allocations: 176.5 kB / 290.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03331/0.03331, allocations: 8.781 MB / 350.1 MB, free: 4.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003834/0.0003835, allocations: 12.84 kB / 413.3 MB, free: 42.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09404/0.09444, allocations: 52.55 MB / 465.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.001976/0.09646, allocations: 1.451 MB / 467.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007258/0.0972, allocations: 463.2 kB / 467.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.343e-05/0.09727, allocations: 0 / 467.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.812e-05/0.09732, allocations: 11.92 kB / 467.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.013e-05/0.09742, allocations: 19.84 kB / 467.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.09761, allocations: 27.91 kB / 467.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.09774, allocations: 79.66 kB / 467.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.09786, allocations: 15.98 kB / 467.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.595e-05/0.09794, allocations: 27.86 kB / 467.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.462e-05/0.09801, allocations: 31.86 kB / 467.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.09804, allocations: 4 kB / 468 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.346e-05/0.09811, allocations: 23.98 kB / 468 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.015e-05/0.09814, allocations: 19.91 kB / 468 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.044e-05/0.09819, allocations: 41.64 kB / 468 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.09833, allocations: 64.08 kB / 468.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.09834, allocations: 0 / 468.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.09835, allocations: 0 / 468.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.09836, allocations: 4 kB / 468.1 MB, free: 11.11 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006538/0.09902, allocations: 395 kB / 468.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.09908, allocations: 8.031 kB / 468.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.432e-05/0.09915, allocations: 42.52 kB / 468.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.09919, allocations: 7.906 kB / 468.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.09937, allocations: 178.8 kB / 468.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.0994, allocations: 12 kB / 468.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.09943, allocations: 4 kB / 468.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.09966, allocations: 92.19 kB / 468.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.09968, allocations: 0 / 468.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.0997, allocations: 4 kB / 468.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.09971, allocations: 3.953 kB / 468.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002145/0.09993, allocations: 71.95 kB / 468.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005907/0.1005, allocations: 407.5 kB / 469.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.1007, allocations: 54.48 kB / 469.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.358e-05/0.1008, allocations: 28.91 kB / 469.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.1008, allocations: 4 kB / 469.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.1008, allocations: 30.56 kB / 469.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 2.234e-06/0.1008, allocations: 4 kB / 469.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.000337/0.1012, allocations: 105.5 kB / 469.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.1012, allocations: 55.53 kB / 469.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.261e-05/0.1013, allocations: 125.8 kB / 469.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.1013, allocations: 25.7 kB / 469.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/0.1014, allocations: 108 kB / 469.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.119e-05/0.1014, allocations: 11.89 kB / 469.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/0.1014, allocations: 0 / 469.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1016, allocations: 314.8 kB / 470.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-05/0.1017, allocations: 27.98 kB / 470.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.998e-05/0.1018, allocations: 46.55 kB / 470.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.496e-05/0.1019, allocations: 27.98 kB / 470.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1019, allocations: 0 / 470.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002085/0.1021, allocations: 97.5 kB / 470.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.1021, allocations: 8.094 kB / 470.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1021, allocations: 7.938 kB / 470.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1021, allocations: 0 / 470.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.996e-05/0.1022, allocations: 15.98 kB / 470.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.1022, allocations: 0 / 470.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.676e-05/0.1023, allocations: 11.98 kB / 470.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.1023, allocations: 4 kB / 470.4 MB, free: 8.574 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.697e-05/0.1024, allocations: 126.4 kB / 470.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.275e-05/0.1024, allocations: 0 / 470.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.788e-05/0.1025, allocations: 11.53 kB / 470.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.1025, allocations: 3.984 kB / 470.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1025, allocations: 0 / 470.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.1025, allocations: 0 / 470.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.1027, allocations: 181.6 kB / 470.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1027, allocations: 4 kB / 470.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.986e-05/0.1027, allocations: 8 kB / 470.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1027, allocations: 7.984 kB / 470.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.1028, allocations: 0 / 470.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1028, allocations: 0 / 470.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1028, allocations: 0 / 470.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.103, allocations: 191.2 kB / 470.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.86e-05/0.1031, allocations: 85.02 kB / 471 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.1031, allocations: 0 / 471 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.719e-05/0.1032, allocations: 7.984 kB / 471 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.644e-05/0.1032, allocations: 4 kB / 471 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.1032, allocations: 4 kB / 471 MB, free: 7.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.286e-05/0.1033, allocations: 103.6 kB / 471.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1033, allocations: 0 / 471.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002334/0.1035, allocations: 19.97 kB / 471.1 MB, free: 7.738 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000491/0.104, allocations: 0.7168 MB / 471.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002163/0.1042, allocations: 59.89 kB / 471.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1042, allocations: 0 / 471.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.982e-05/0.1043, allocations: 28.2 kB / 471.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.1046, allocations: 9.703 kB / 471.9 MB, free: 6.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.1056, allocations: 0.5437 MB / 472.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.1061, allocations: 0.6887 MB / 473.2 MB, free: 5.594 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.119e-05/0.1061, allocations: 3.984 kB / 473.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.825e-05/0.1062, allocations: 31.31 kB / 473.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1062, allocations: 4 kB / 473.2 MB, free: 5.555 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01238/0.1186, allocations: 1.498 MB / 474.7 MB, free: 4.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/0.1188, allocations: 172.8 kB / 474.9 MB, free: 3.918 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/1.763, allocations: 0 / 474.9 MB, free: 3.918 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TestBrush.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TestBrush.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_TestBrush_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_TestBrush.fmu > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1) Environment - environmentSimulation: