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-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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.0007375/0.0007378, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.345/1.345, allocations: 223.3 MB / 239.4 MB, free: 5.391 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.0009931/0.0009933, allocations: 180.6 kB / 290.6 MB, free: 2.059 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03303/0.03303, allocations: 8.805 MB / 350.5 MB, free: 4.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003721, allocations: 11.22 kB / 413.9 MB, free: 42.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08781, allocations: 52.55 MB / 466.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.001951/0.08979, allocations: 1.494 MB / 468 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008187/0.09064, allocations: 482.9 kB / 468.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.355e-05/0.09071, allocations: 4 kB / 468.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.393e-05/0.09075, allocations: 7.922 kB / 468.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.711e-05/0.09085, allocations: 15.84 kB / 468.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001644/0.09102, allocations: 27.98 kB / 468.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.09113, allocations: 87.59 kB / 468.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.09124, allocations: 24.2 kB / 468.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.194e-05/0.09132, allocations: 27.92 kB / 468.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.175e-05/0.09139, allocations: 35.84 kB / 468.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.09141, allocations: 7.938 kB / 468.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.189e-05/0.09148, allocations: 11.98 kB / 468.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.09151, allocations: 16 kB / 468.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.009e-05/0.09157, allocations: 61.5 kB / 468.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001355/0.09171, allocations: 95.64 kB / 468.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.09172, allocations: 0 / 468.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.09173, allocations: 0 / 468.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.676e-06/0.09174, allocations: 0 / 468.9 MB, free: 10.61 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.0004806/0.09223, allocations: 379.2 kB / 469.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.09228, allocations: 12.03 kB / 469.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.649e-05/0.09232, allocations: 38.75 kB / 469.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.09235, allocations: 8.844 kB / 469.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.0925, allocations: 184.2 kB / 469.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.09252, allocations: 4.375 kB / 469.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.931e-05/0.09254, allocations: 12.3 kB / 469.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.09279, allocations: 100.1 kB / 469.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.0928, allocations: 0 / 469.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.09282, allocations: 4 kB / 469.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.09283, allocations: 4 kB / 469.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.09307, allocations: 71.95 kB / 469.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005885/0.09366, allocations: 411.4 kB / 470.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.09381, allocations: 50.55 kB / 470.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.822e-05/0.09392, allocations: 28.91 kB / 470.1 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.09395, allocations: 0 / 470.1 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.09398, allocations: 30.56 kB / 470.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.09398, allocations: 0 / 470.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003919/0.09438, allocations: 117.5 kB / 470.3 MB, free: 9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.09442, allocations: 51.41 kB / 470.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.09454, allocations: 122 kB / 470.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.09456, allocations: 25.7 kB / 470.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.09462, allocations: 111.9 kB / 470.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.115e-05/0.09464, allocations: 7.984 kB / 470.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/0.09467, allocations: 9.719 kB / 470.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.09478, allocations: 314.8 kB / 470.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.652e-05/0.09488, allocations: 27.97 kB / 470.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.09499, allocations: 46.56 kB / 471 MB, free: 8.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.09518, allocations: 74.47 kB / 471.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.0952, allocations: 0 / 471.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002516/0.09545, allocations: 97.5 kB / 471.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.09548, allocations: 10.19 kB / 471.2 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.09549, allocations: 3.938 kB / 471.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.09551, allocations: 0 / 471.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.09561, allocations: 19.98 kB / 471.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.09563, allocations: 4 kB / 471.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.106e-05/0.09569, allocations: 4 kB / 471.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.09571, allocations: 8.094 kB / 471.2 MB, free: 8.012 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.905e-05/0.0958, allocations: 126.4 kB / 471.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.592e-05/0.09584, allocations: 7.844 kB / 471.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.644e-05/0.09587, allocations: 11.47 kB / 471.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.09587, allocations: 0 / 471.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.09588, allocations: 0 / 471.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.09589, allocations: 0 / 471.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.09607, allocations: 181.6 kB / 471.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.09608, allocations: 7.938 kB / 471.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.598e-05/0.09616, allocations: 15.98 kB / 471.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.09617, allocations: 0 / 471.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.447e-06/0.09618, allocations: 3.938 kB / 471.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.09619, allocations: 0 / 471.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.09619, allocations: 4 kB / 471.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000261/0.09646, allocations: 179.5 kB / 471.7 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.97e-05/0.09651, allocations: 85.02 kB / 471.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.09653, allocations: 7.875 kB / 471.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.348e-05/0.09662, allocations: 7.984 kB / 471.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.09666, allocations: 4 kB / 471.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.09667, allocations: 0 / 471.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.651e-05/0.09674, allocations: 107.7 kB / 471.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09675, allocations: 0 / 471.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.09699, allocations: 16 kB / 471.9 MB, free: 7.168 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 (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.0005365/0.09753, allocations: 0.7123 MB / 472.7 MB, free: 6.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000235/0.09778, allocations: 64.05 kB / 472.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.09779, allocations: 0 / 472.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.707e-05/0.09789, allocations: 27.98 kB / 472.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.09817, allocations: 8 kB / 472.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.0998, allocations: 1.474 MB / 474.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.1001, allocations: 0.6926 MB / 474.9 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.73e-05/0.1001, allocations: 8 kB / 474.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.404e-05/0.1002, allocations: 23.42 kB / 475 MB, free: 4.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1002, allocations: 0 / 475 MB, free: 4.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01177/0.1119, allocations: 1.513 MB / 476.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.1122, allocations: 187.3 kB / 476.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/1.794, allocations: 0 / 476.6 MB, free: 2.344 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/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)