Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Signals.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.Signals,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Signals",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Signals,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Signals",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.001007/0.001007, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.291/1.291, allocations: 222.9 MB / 239 MB, free: 4.734 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.001335/0.001335, allocations: 196.4 kB / 289.3 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03432/0.03432, allocations: 8.797 MB / 348.2 MB, free: 4.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 75.44 kB / 410.7 MB, free: 42.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07451/0.07597, allocations: 51.56 MB / 462.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Signals): time 0.003293/0.0793, allocations: 2.247 MB / 464.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007166/0.08004, allocations: 498.8 kB / 465 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.817e-05/0.08015, allocations: 4 kB / 465 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.08029, allocations: 19.84 kB / 465 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.28e-05/0.08038, allocations: 31.7 kB / 465 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001513/0.08053, allocations: 39.97 kB / 465.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.08073, allocations: 163.3 kB / 465.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.08089, allocations: 66.06 kB / 465.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.493e-05/0.08097, allocations: 63.78 kB / 465.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.319e-05/0.08107, allocations: 63.7 kB / 465.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.0811, allocations: 16 kB / 465.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.584e-05/0.08113, allocations: 12 kB / 465.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.129e-05/0.08117, allocations: 35.8 kB / 465.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.884e-05/0.08124, allocations: 79.59 kB / 465.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001776/0.08142, allocations: 167.7 kB / 465.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.08144, allocations: 0 / 465.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.08144, allocations: 3.938 kB / 465.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.08145, allocations: 0 / 465.7 MB, free: 11.14 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0005582/0.08202, allocations: 462.8 kB / 466.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.08206, allocations: 12.03 kB / 466.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.643e-05/0.08212, allocations: 46.73 kB / 466.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.011e-05/0.08217, allocations: 20.66 kB / 466.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001993/0.08237, allocations: 212.1 kB / 466.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.08239, allocations: 8.375 kB / 466.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.08243, allocations: 16.38 kB / 466.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.08272, allocations: 172.8 kB / 466.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.08274, allocations: 0 / 466.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.08276, allocations: 4 kB / 466.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.08277, allocations: 4 kB / 466.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.08296, allocations: 88.8 kB / 466.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008869/0.08386, allocations: 0.7418 MB / 467.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.08404, allocations: 78.55 kB / 467.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.385e-05/0.08412, allocations: 36.84 kB / 467.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.738e-06/0.08414, allocations: 0 / 467.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.08417, allocations: 34.56 kB / 467.6 MB, free: 9.027 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.08417, allocations: 0 / 467.6 MB, free: 9.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002642/0.08444, allocations: 109.6 kB / 467.8 MB, free: 8.914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.912e-05/0.08448, allocations: 55.34 kB / 467.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.08462, allocations: 162.1 kB / 468 MB, free: 8.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.08464, allocations: 25.7 kB / 468 MB, free: 8.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.003e-05/0.08472, allocations: 139.5 kB / 468.1 MB, free: 8.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.603e-05/0.08475, allocations: 23.64 kB / 468.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.675e-05/0.0848, allocations: 33.72 kB / 468.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.332e-05/0.0849, allocations: 318.8 kB / 468.5 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.056e-05/0.08498, allocations: 27.98 kB / 468.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.2e-05/0.08506, allocations: 65.66 kB / 468.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.08522, allocations: 96.14 kB / 468.7 MB, free: 7.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.08523, allocations: 0 / 468.7 MB, free: 7.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002113/0.08544, allocations: 129.4 kB / 468.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.08547, allocations: 4.125 kB / 468.8 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.08548, allocations: 8 kB / 468.8 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.08549, allocations: 0 / 468.8 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.08563, allocations: 27.92 kB / 468.8 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.08564, allocations: 7.938 kB / 468.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.674e-05/0.08571, allocations: 8 kB / 468.9 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.08573, allocations: 4 kB / 468.9 MB, free: 7.719 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.189e-05/0.08583, allocations: 134.3 kB / 469 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.267e-05/0.08586, allocations: 15.8 kB / 469 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/0.0859, allocations: 16.72 kB / 469 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.08591, allocations: 3.984 kB / 469 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.08592, allocations: 3.938 kB / 469 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.08593, allocations: 0 / 469 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.08614, allocations: 217.6 kB / 469.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.08615, allocations: 4.094 kB / 469.3 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.08626, allocations: 19.92 kB / 469.3 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.08627, allocations: 0 / 469.3 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.08628, allocations: 4 kB / 469.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.08629, allocations: 0 / 469.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.0863, allocations: 7.938 kB / 469.3 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.08656, allocations: 207.4 kB / 469.5 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.08661, allocations: 85.02 kB / 469.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.08664, allocations: 8.016 kB / 469.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.878e-05/0.08674, allocations: 4 kB / 469.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.626e-05/0.08677, allocations: 3.938 kB / 469.6 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.08679, allocations: 8.062 kB / 469.6 MB, free: 6.898 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.767e-05/0.08687, allocations: 115.2 kB / 469.7 MB, free: 6.785 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.08688, allocations: 0 / 469.7 MB, free: 6.785 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002545/0.08713, allocations: 35.84 kB / 469.7 MB, free: 6.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor.i,integrator.y) * 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 (7): * Single equations (assignments): 7 * 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.0004727/0.08761, allocations: 0.7397 MB / 470.5 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001832/0.08781, allocations: 71.91 kB / 470.6 MB, free: 5.914 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.08782, allocations: 0 / 470.6 MB, free: 5.914 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.247e-05/0.08789, allocations: 27.92 kB / 470.6 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.08825, allocations: 27 kB / 470.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.09003, allocations: 1.854 MB / 472.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.09029, allocations: 0.7157 MB / 473.2 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.986e-05/0.09035, allocations: 13.06 kB / 473.2 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.218e-05/0.09042, allocations: 43.36 kB / 473.2 MB, free: 3.105 MB / 302.1 MB Notification: Performance of SimCode: time 1.383e-06/0.09043, allocations: 0 / 473.2 MB, free: 3.105 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01373/0.1042, allocations: 2.397 MB / 475.6 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/0.1044, allocations: 181.8 kB / 475.8 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/1.768, allocations: 0 / 475.8 MB, free: 0.5508 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.Electrical.Signals.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Signals.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Signals.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Signals.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_Signals_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_Signals.fmu > HanserModelica_HanserModelica.Electrical.Signals.pipe 2>&1)