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.0008862/0.0008862, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.317/1.317, allocations: 223.2 MB / 238.9 MB, free: 5.488 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.00111/0.00111, allocations: 195.6 kB / 290.2 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03275/0.03275, allocations: 8.782 MB / 350 MB, free: 4.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005149/0.0005149, allocations: 14.84 kB / 413.2 MB, free: 42.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1037, allocations: 52.56 MB / 465.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.00185/0.1056, allocations: 1.43 MB / 467.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00065/0.1062, allocations: 463.4 kB / 467.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.793e-05/0.1063, allocations: 4 kB / 467.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.053e-05/0.1063, allocations: 7.922 kB / 467.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.221e-05/0.1064, allocations: 19.94 kB / 467.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.1066, allocations: 27.86 kB / 467.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.733e-05/0.1067, allocations: 55.92 kB / 467.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.1068, allocations: 23.98 kB / 467.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.923e-05/0.1069, allocations: 31.86 kB / 467.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.793e-05/0.107, allocations: 31.89 kB / 467.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.107, allocations: 4 kB / 467.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.291e-05/0.1071, allocations: 12 kB / 467.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.743e-05/0.1071, allocations: 15.92 kB / 467.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.184e-05/0.1072, allocations: 37.64 kB / 467.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.1073, allocations: 76.06 kB / 468 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1073, allocations: 0 / 468 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1073, allocations: 0 / 468 MB, free: 11.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1073, allocations: 0 / 468 MB, free: 11.16 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.0004866/0.1078, allocations: 387 kB / 468.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1079, allocations: 12.03 kB / 468.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.419e-05/0.1079, allocations: 42.5 kB / 468.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.1079, allocations: 7.906 kB / 468.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.1081, allocations: 174.9 kB / 468.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.1081, allocations: 11.94 kB / 468.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.1081, allocations: 11.98 kB / 468.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.1083, allocations: 89.64 kB / 468.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.1084, allocations: 0 / 468.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.1084, allocations: 4 kB / 468.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1084, allocations: 7.953 kB / 468.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.1086, allocations: 75.95 kB / 468.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005518/0.1092, allocations: 395.5 kB / 469.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.1093, allocations: 46.56 kB / 469.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.1093, allocations: 0 / 469.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.1094, allocations: 34.5 kB / 469.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.1094, allocations: 7.938 kB / 469.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003561/0.1097, allocations: 105.6 kB / 469.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.1098, allocations: 55.53 kB / 469.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.741e-05/0.1099, allocations: 125.8 kB / 469.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.1099, allocations: 25.7 kB / 469.5 MB, free: 9.363 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.594e-05/0.1099, allocations: 104 kB / 469.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.578e-06/0.11, allocations: 7.906 kB / 469.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/0.11, allocations: 0 / 469.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1101, allocations: 318.8 kB / 470 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.991e-05/0.1102, allocations: 31.97 kB / 470 MB, free: 8.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.766e-05/0.1103, allocations: 42.5 kB / 470 MB, free: 8.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.194e-05/0.1104, allocations: 31.98 kB / 470.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1104, allocations: 0 / 470.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000223/0.1106, allocations: 97.5 kB / 470.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.1107, allocations: 7.984 kB / 470.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1107, allocations: 8.094 kB / 470.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.1107, allocations: 0 / 470.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.83e-05/0.1108, allocations: 12 kB / 470.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.1108, allocations: 3.984 kB / 470.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.211e-05/0.1109, allocations: 12 kB / 470.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.1109, allocations: 0 / 470.2 MB, free: 8.672 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 8.016e-05/0.111, allocations: 117.8 kB / 470.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.111, allocations: 8 kB / 470.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.762e-05/0.111, allocations: 11.52 kB / 470.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.111, allocations: 0 / 470.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.111, allocations: 3.938 kB / 470.3 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1111, allocations: 4 kB / 470.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.1112, allocations: 181.6 kB / 470.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1112, allocations: 0 / 470.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.14e-05/0.1113, allocations: 11.98 kB / 470.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1113, allocations: 0 / 470.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.1113, allocations: 11.94 kB / 470.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1113, allocations: 3.984 kB / 470.5 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1113, allocations: 3.938 kB / 470.5 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002404/0.1116, allocations: 183.4 kB / 470.7 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-05/0.1116, allocations: 81.02 kB / 470.8 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.1117, allocations: 0 / 470.8 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.251e-05/0.1117, allocations: 11.98 kB / 470.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.1118, allocations: 0 / 470.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.1118, allocations: 4 kB / 470.8 MB, free: 7.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.734e-05/0.1118, allocations: 95.7 kB / 470.9 MB, free: 7.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.332e-06/0.1118, allocations: 0 / 470.9 MB, free: 7.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.1121, allocations: 27.91 kB / 470.9 MB, free: 7.832 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.0004885/0.1126, allocations: 0.7246 MB / 471.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.1128, allocations: 51.91 kB / 471.7 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1128, allocations: 4 kB / 471.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.867e-05/0.1129, allocations: 32.16 kB / 471.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/0.1131, allocations: 4.328 kB / 471.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009745/0.1141, allocations: 0.853 MB / 472.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.1143, allocations: 0.6926 MB / 473.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.057e-05/0.1144, allocations: 3.984 kB / 473.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.584e-05/0.1144, allocations: 27.38 kB / 473.3 MB, free: 5.336 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1144, allocations: 0 / 473.3 MB, free: 5.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01024/0.1246, allocations: 1.483 MB / 474.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001546/0.1248, allocations: 173.2 kB / 475 MB, free: 3.711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.553/1.678, allocations: 4 kB / 475 MB, free: 3.707 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: