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.001151/0.001156, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 239.3 MB, free: 4.578 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.001586/0.001586, allocations: 192.5 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03594/0.03594, allocations: 8.793 MB / 348.5 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 84.12 kB / 411.2 MB, free: 41.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08381/0.08532, allocations: 51.57 MB / 462.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003386/0.08874, allocations: 1.764 MB / 464.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008989/0.08967, allocations: 494.8 kB / 465 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.566e-05/0.08975, allocations: 0 / 465 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.894e-05/0.08984, allocations: 11.86 kB / 465 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.915e-05/0.08994, allocations: 27.78 kB / 465 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002271/0.09018, allocations: 31.91 kB / 465.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.09031, allocations: 87.59 kB / 465.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.09046, allocations: 28 kB / 465.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.592e-05/0.09056, allocations: 31.91 kB / 465.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.447e-05/0.09063, allocations: 39.84 kB / 465.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2e-05/0.09066, allocations: 11.94 kB / 465.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.071e-05/0.09074, allocations: 19.98 kB / 465.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.244e-05/0.09076, allocations: 15.98 kB / 465.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.562e-05/0.09081, allocations: 35.75 kB / 465.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.09099, allocations: 107.9 kB / 465.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.091, allocations: 0 / 465.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.091, allocations: 0 / 465.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.09101, allocations: 4 kB / 465.4 MB, free: 11.5 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.0005057/0.09153, allocations: 392.8 kB / 465.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.09157, allocations: 8.031 kB / 465.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.374e-05/0.09162, allocations: 38.75 kB / 465.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.241e-05/0.09165, allocations: 12.83 kB / 465.9 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.09178, allocations: 164.4 kB / 466 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.09181, allocations: 12.31 kB / 466.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.09183, allocations: 8.312 kB / 466.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.09205, allocations: 93.72 kB / 466.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.09206, allocations: 0 / 466.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.09208, allocations: 7.984 kB / 466.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.09209, allocations: 0 / 466.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002043/0.0923, allocations: 67.94 kB / 466.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006068/0.09291, allocations: 395.5 kB / 466.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.09306, allocations: 46.55 kB / 466.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.09318, allocations: 24.91 kB / 466.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.09321, allocations: 11.98 kB / 466.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.09324, allocations: 34.5 kB / 466.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.09325, allocations: 0 / 466.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003764/0.09363, allocations: 93.48 kB / 466.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.09367, allocations: 51.41 kB / 466.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.09379, allocations: 126 kB / 467 MB, free: 9.738 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.09382, allocations: 29.7 kB / 467 MB, free: 9.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.414e-05/0.0939, allocations: 104 kB / 467.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.15e-05/0.09392, allocations: 7.906 kB / 467.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.659e-05/0.09396, allocations: 13.72 kB / 467.2 MB, free: 9.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.09409, allocations: 326.8 kB / 467.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.857e-05/0.09418, allocations: 15.98 kB / 467.5 MB, free: 9.227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.613e-05/0.09429, allocations: 46.5 kB / 467.5 MB, free: 9.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.09447, allocations: 58.53 kB / 467.6 MB, free: 9.105 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.09449, allocations: 4 kB / 467.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002194/0.09471, allocations: 85.59 kB / 467.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.09473, allocations: 4 kB / 467.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.09474, allocations: 3.938 kB / 467.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.09476, allocations: 4 kB / 467.7 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.488e-05/0.09486, allocations: 11.98 kB / 467.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.09488, allocations: 3.938 kB / 467.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.273e-05/0.09494, allocations: 15.89 kB / 467.7 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.385e-06/0.09496, allocations: 4 kB / 467.7 MB, free: 8.965 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.414e-05/0.09505, allocations: 126.5 kB / 467.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.09508, allocations: 3.938 kB / 467.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.985e-05/0.09511, allocations: 11.47 kB / 467.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.09512, allocations: 0 / 467.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.09513, allocations: 0 / 467.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.09514, allocations: 0 / 467.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.09533, allocations: 177.6 kB / 468 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.09534, allocations: 4 kB / 468 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.07e-05/0.0954, allocations: 7.984 kB / 468 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.09541, allocations: 4 kB / 468 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.09543, allocations: 3.938 kB / 468.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.09543, allocations: 4 kB / 468.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.09544, allocations: 0 / 468.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.09569, allocations: 171.4 kB / 468.2 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.822e-05/0.09574, allocations: 85.12 kB / 468.3 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.09576, allocations: 7.938 kB / 468.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.976e-05/0.09584, allocations: 4 kB / 468.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.09588, allocations: 3.984 kB / 468.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.09589, allocations: 4 kB / 468.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.382e-05/0.09596, allocations: 99.27 kB / 468.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09597, allocations: 0 / 468.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.09622, allocations: 23.84 kB / 468.4 MB, free: 8.145 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.0005235/0.09674, allocations: 0.6968 MB / 469.1 MB, free: 7.422 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000228/0.09698, allocations: 51.89 kB / 469.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.097, allocations: 4.219 kB / 469.2 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.565e-05/0.09709, allocations: 19.98 kB / 469.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.09741, allocations: 16.39 kB / 469.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.09902, allocations: 1.415 MB / 470.6 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.0993, allocations: 0.6962 MB / 471.3 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.326e-05/0.09935, allocations: 8.234 kB / 471.4 MB, free: 5.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.0994, allocations: 15.44 kB / 471.4 MB, free: 5.078 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.0994, allocations: 0 / 471.4 MB, free: 5.078 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.1177, allocations: 1.762 MB / 473.1 MB, free: 3.363 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.482/7.6, allocations: 13.81 kB / 473.1 MB, free: 3.352 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)