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.001248/0.001248, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.358/1.358, allocations: 222.9 MB / 238.9 MB, free: 4.793 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.001351/0.001351, allocations: 196.5 kB / 289.1 MB, free: 2.527 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03356/0.03356, allocations: 8.788 MB / 348.1 MB, free: 4.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 75 kB / 410.5 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0873/0.08887, allocations: 51.57 MB / 462.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003498/0.09241, allocations: 1.823 MB / 463.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009246/0.09337, allocations: 0.4948 MB / 464.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.846e-05/0.09346, allocations: 0 / 464.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.086e-05/0.09353, allocations: 7.922 kB / 464.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001009/0.09364, allocations: 19.84 kB / 464.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.09387, allocations: 19.98 kB / 464.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.09398, allocations: 83.64 kB / 464.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.09411, allocations: 27.98 kB / 464.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.926e-05/0.0942, allocations: 31.81 kB / 464.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.09435, allocations: 35.84 kB / 464.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.09437, allocations: 4 kB / 464.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.697e-05/0.09446, allocations: 23.98 kB / 464.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.327e-05/0.0945, allocations: 11.98 kB / 464.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.967e-05/0.09455, allocations: 35.8 kB / 464.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.0947, allocations: 95.95 kB / 464.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.09471, allocations: 0 / 464.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.09472, allocations: 0 / 464.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.09473, allocations: 4 kB / 464.8 MB, free: 12.12 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.0005508/0.09529, allocations: 395 kB / 465.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.09534, allocations: 12.03 kB / 465.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.529e-05/0.09539, allocations: 42.67 kB / 465.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.09544, allocations: 8.844 kB / 465.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.09558, allocations: 172.4 kB / 465.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.0956, allocations: 8.312 kB / 465.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.09562, allocations: 8.375 kB / 465.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002324/0.09586, allocations: 89.78 kB / 465.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.09588, allocations: 0 / 465.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.09589, allocations: 0 / 465.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.09591, allocations: 4 kB / 465.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.09612, allocations: 67.88 kB / 465.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006095/0.09674, allocations: 399.5 kB / 466 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.09688, allocations: 42.53 kB / 466 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.607e-05/0.09698, allocations: 24.91 kB / 466 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.09701, allocations: 4 kB / 466 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.09705, allocations: 30.56 kB / 466.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.09706, allocations: 0 / 466.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003741/0.09744, allocations: 101.4 kB / 466.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.09749, allocations: 55.34 kB / 466.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.09761, allocations: 129.9 kB / 466.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.09764, allocations: 25.7 kB / 466.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.369e-05/0.09772, allocations: 108 kB / 466.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.09774, allocations: 7.906 kB / 466.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.977e-05/0.0978, allocations: 17.72 kB / 466.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.09793, allocations: 314.8 kB / 466.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.09804, allocations: 19.98 kB / 466.8 MB, free: 9.844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.09816, allocations: 42.56 kB / 466.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.09835, allocations: 62.47 kB / 466.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.09836, allocations: 0 / 466.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002397/0.09861, allocations: 85.59 kB / 467 MB, free: 9.633 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.09863, allocations: 6.031 kB / 467 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.09865, allocations: 11.88 kB / 467 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.09867, allocations: 0 / 467 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.819e-05/0.09877, allocations: 11.98 kB / 467 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.09879, allocations: 0 / 467 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.282e-05/0.09886, allocations: 15.89 kB / 467.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.09887, allocations: 96 / 467.1 MB, free: 9.59 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 9.328e-05/0.09897, allocations: 126.4 kB / 467.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.836e-05/0.099, allocations: 4 kB / 467.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.669e-05/0.09905, allocations: 11.47 kB / 467.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.09905, allocations: 0 / 467.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.09906, allocations: 0 / 467.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.09907, allocations: 0 / 467.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.09928, allocations: 185.6 kB / 467.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.09929, allocations: 0 / 467.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.052e-05/0.09935, allocations: 7.984 kB / 467.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.09937, allocations: 8 kB / 467.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.09938, allocations: 3.938 kB / 467.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.09939, allocations: 0 / 467.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.09939, allocations: 0 / 467.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.09965, allocations: 167.4 kB / 467.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.75e-05/0.0997, allocations: 81.09 kB / 467.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.09972, allocations: 7.969 kB / 467.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.812e-05/0.09981, allocations: 4 kB / 467.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.846e-05/0.09985, allocations: 7.984 kB / 467.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.351e-06/0.09986, allocations: 7.938 kB / 467.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.848e-05/0.09993, allocations: 91.27 kB / 467.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.09993, allocations: 0 / 467.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002533/0.1002, allocations: 27.84 kB / 467.8 MB, free: 8.77 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.0005626/0.1008, allocations: 0.7046 MB / 468.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002171/0.101, allocations: 47.89 kB / 468.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.101, allocations: 4.219 kB / 468.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.516e-05/0.1011, allocations: 19.98 kB / 468.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.1014, allocations: 11.92 kB / 468.6 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.103, allocations: 1.439 MB / 470 MB, free: 6.426 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.1033, allocations: 0.6926 MB / 470.7 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.955e-05/0.1034, allocations: 7.984 kB / 470.7 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.229e-05/0.1035, allocations: 19.44 kB / 470.7 MB, free: 5.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1035, allocations: 0 / 470.7 MB, free: 5.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01145/0.1149, allocations: 1.575 MB / 472.3 MB, free: 4.176 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002304/0.1152, allocations: 186.2 kB / 472.5 MB, free: 3.918 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.665/1.78, allocations: 4 kB / 472.5 MB, free: 3.914 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)