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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.01672/0.01672, allocations: 167.8 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06984/0.06984, allocations: 8.806 MB / 24.68 MB, free: 4.098 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.328/2.328, allocations: 223.3 MB / 250.8 MB, free: 4.812 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 99.12 kB / 304.1 MB, free: 3.547 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006638/0.0006643, allocations: 8 kB / 367.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1847, allocations: 52.56 MB / 419.8 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003542/0.1883, allocations: 1.451 MB / 421.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1895, allocations: 455.2 kB / 421.7 MB, free: 196 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.96e-05/0.1896, allocations: 4 kB / 421.7 MB, free: 192 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.561e-05/0.1896, allocations: 7.922 kB / 421.7 MB, free: 184 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.1897, allocations: 15.91 kB / 421.7 MB, free: 168 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.19, allocations: 31.92 kB / 421.8 MB, free: 136 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.1902, allocations: 79.64 kB / 421.8 MB, free: 56 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.1904, allocations: 23.97 kB / 421.9 MB, free: 32 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.1905, allocations: 23.92 kB / 421.9 MB, free: 8 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3863/0.5768, allocations: 34.11 kB / 421.9 MB, free: 42.38 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.514e-05/0.5769, allocations: 7.188 kB / 421.9 MB, free: 42.38 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.5771, allocations: 13.02 kB / 421.9 MB, free: 42.38 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.746e-05/0.5771, allocations: 6.969 kB / 421.9 MB, free: 42.38 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.5772, allocations: 43.27 kB / 422 MB, free: 42.35 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.5774, allocations: 75.27 kB / 422.1 MB, free: 42.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.5774, allocations: 3.125 kB / 422.1 MB, free: 42.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.5774, allocations: 0 / 422.1 MB, free: 42.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.5775, allocations: 0 / 422.1 MB, free: 42.35 MB / 346.7 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.0006562/0.5781, allocations: 378.8 kB / 422.4 MB, free: 41.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.5782, allocations: 9.469 kB / 422.4 MB, free: 41.99 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.226e-05/0.5783, allocations: 42.05 kB / 422.5 MB, free: 41.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.5783, allocations: 14.22 kB / 422.5 MB, free: 41.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.5785, allocations: 173.1 kB / 422.7 MB, free: 41.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.5785, allocations: 5.531 kB / 422.7 MB, free: 41.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.5786, allocations: 7.656 kB / 422.7 MB, free: 41.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003158/0.5789, allocations: 91.39 kB / 422.8 MB, free: 41.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.5789, allocations: 0 / 422.8 MB, free: 41.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.5789, allocations: 3.312 kB / 422.8 MB, free: 41.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.5789, allocations: 3.953 kB / 422.8 MB, free: 41.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002857/0.5792, allocations: 78.06 kB / 422.9 MB, free: 41.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007364/0.58, allocations: 406.3 kB / 423.2 MB, free: 41.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001721/0.5802, allocations: 53.23 kB / 423.3 MB, free: 41.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.5803, allocations: 28.52 kB / 423.3 MB, free: 41.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.5803, allocations: 1.25 kB / 423.3 MB, free: 41.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.5804, allocations: 36.69 kB / 423.4 MB, free: 41.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/0.5804, allocations: 0 / 423.4 MB, free: 41.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0005084/0.5809, allocations: 110 kB / 423.5 MB, free: 41.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.5809, allocations: 52.62 kB / 423.5 MB, free: 41.24 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.5811, allocations: 122.1 kB / 423.6 MB, free: 41.14 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.5811, allocations: 28.7 kB / 423.7 MB, free: 41.11 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.823e-05/0.5812, allocations: 106.6 kB / 423.8 MB, free: 41.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.026e-05/0.5812, allocations: 5.656 kB / 423.8 MB, free: 41.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-06/0.5812, allocations: 3 kB / 423.8 MB, free: 41.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.548e-05/0.5813, allocations: 321.2 kB / 424.1 MB, free: 40.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.5814, allocations: 25.28 kB / 424.1 MB, free: 40.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.5816, allocations: 51.16 kB / 424.2 MB, free: 40.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.5817, allocations: 30.73 kB / 424.2 MB, free: 40.67 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.5817, allocations: 5.547 kB / 424.2 MB, free: 40.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000282/0.582, allocations: 90.44 kB / 424.3 MB, free: 40.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.5821, allocations: 6.125 kB / 424.3 MB, free: 40.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.5821, allocations: 3.25 kB / 424.3 MB, free: 40.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.5821, allocations: 6.156 kB / 424.3 MB, free: 40.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.5822, allocations: 14.84 kB / 424.3 MB, free: 40.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.5823, allocations: 0 / 424.3 MB, free: 40.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.555e-05/0.5824, allocations: 16.69 kB / 424.3 MB, free: 40.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.5824, allocations: 3 kB / 424.3 MB, free: 40.63 MB / 346.7 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 9.101e-05/0.5825, allocations: 123.2 kB / 424.5 MB, free: 40.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.459e-05/0.5825, allocations: 2.906 kB / 424.5 MB, free: 40.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4e-05/0.5826, allocations: 11.47 kB / 424.5 MB, free: 40.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.5826, allocations: 0 / 424.5 MB, free: 40.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5826, allocations: 0 / 424.5 MB, free: 40.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.5826, allocations: 0 / 424.5 MB, free: 40.51 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001921/0.5828, allocations: 186.1 kB / 424.7 MB, free: 40.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5828, allocations: 3.125 kB / 424.7 MB, free: 40.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.862e-05/0.5829, allocations: 12.59 kB / 424.7 MB, free: 40.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.5829, allocations: 0 / 424.7 MB, free: 40.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.5829, allocations: 0.5 kB / 424.7 MB, free: 40.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.5829, allocations: 3.031 kB / 424.7 MB, free: 40.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.583, allocations: 2.078 kB / 424.7 MB, free: 40.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003065/0.5833, allocations: 187.9 kB / 424.9 MB, free: 40.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.5833, allocations: 79.92 kB / 424.9 MB, free: 40.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.5833, allocations: 1.125 kB / 424.9 MB, free: 40.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.5835, allocations: 10.39 kB / 425 MB, free: 40.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.557e-05/0.5835, allocations: 2 kB / 425 MB, free: 40.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.5836, allocations: 1.688 kB / 425 MB, free: 40.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.747e-05/0.5836, allocations: 101.2 kB / 425.1 MB, free: 40.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5836, allocations: 0 / 425.1 MB, free: 40.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003559/0.584, allocations: 19.84 kB / 425.1 MB, free: 40.01 MB / 346.7 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.0005489/0.5846, allocations: 0.7177 MB / 425.8 MB, free: 39.35 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000316/0.5849, allocations: 62.83 kB / 425.9 MB, free: 39.35 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5849, allocations: 0 / 425.9 MB, free: 39.35 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.585, allocations: 25.31 kB / 425.9 MB, free: 39.35 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.5855, allocations: 11.34 kB / 425.9 MB, free: 39.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.5868, allocations: 0.5542 MB / 426.4 MB, free: 38.98 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001558/0.587, allocations: 0.689 MB / 427.1 MB, free: 38.28 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.282e-05/0.5871, allocations: 3.75 kB / 427.1 MB, free: 38.28 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.807e-05/0.5871, allocations: 21.62 kB / 427.2 MB, free: 38.27 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5871, allocations: 1.719 kB / 427.2 MB, free: 38.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.6049, allocations: 1.501 MB / 428.7 MB, free: 38.19 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000237/0.6052, allocations: 178.8 kB / 428.8 MB, free: 37.95 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.67/3.275, allocations: 0 / 428.8 MB, free: 37.95 MB / 346.7 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)