Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical4.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.FirstSteps.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",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.001308/0.001308, allocations: 108 kB / 15.61 MB, free: 148 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.4/1.4, allocations: 222.9 MB / 239.3 MB, free: 4.625 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.001608/0.001608, allocations: 188.5 kB / 289.6 MB, free: 2.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03472/0.03472, allocations: 8.79 MB / 348.5 MB, free: 4.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 77.58 kB / 411.2 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09319/0.09485, allocations: 51.57 MB / 462.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.00323/0.09812, allocations: 1.795 MB / 464.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007879/0.09893, allocations: 466.8 kB / 465 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.09907, allocations: 0 / 465 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.0992, allocations: 23.78 kB / 465 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.184e-05/0.09933, allocations: 31.7 kB / 465.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001586/0.09949, allocations: 23.97 kB / 465.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001844/0.09969, allocations: 119.5 kB / 465.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.09984, allocations: 48.95 kB / 465.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.026e-05/0.09992, allocations: 47.78 kB / 465.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.625e-05/0.1, allocations: 51.77 kB / 465.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.47e-05/0.1, allocations: 12 kB / 465.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.278e-05/0.1001, allocations: 8 kB / 465.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.723e-05/0.1001, allocations: 23.92 kB / 465.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.246e-05/0.1002, allocations: 59.73 kB / 465.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.1003, allocations: 123.9 kB / 465.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1004, allocations: 0 / 465.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1004, allocations: 0 / 465.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1004, allocations: 0 / 465.6 MB, free: 11.47 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006327/0.101, allocations: 407.1 kB / 466 MB, free: 11.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.1011, allocations: 12.03 kB / 466 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.651e-05/0.1011, allocations: 46.67 kB / 466 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.1012, allocations: 16.84 kB / 466 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.1015, allocations: 184.2 kB / 466.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.1015, allocations: 12.38 kB / 466.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.587e-05/0.1015, allocations: 8.375 kB / 466.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/0.1018, allocations: 119.2 kB / 466.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.1018, allocations: 0 / 466.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.1018, allocations: 4 kB / 466.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1018, allocations: 4 kB / 466.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.1019, allocations: 55.98 kB / 466.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008877/0.1028, allocations: 0.502 MB / 466.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.103, allocations: 50.52 kB / 467 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.576e-05/0.103, allocations: 20.94 kB / 467 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/0.103, allocations: 0 / 467 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.1031, allocations: 34.56 kB / 467 MB, free: 9.832 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.202e-06/0.1031, allocations: 3.938 kB / 467 MB, free: 9.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001941/0.1033, allocations: 61.62 kB / 467.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.1033, allocations: 51.41 kB / 467.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.1035, allocations: 156.2 kB / 467.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.1035, allocations: 25.7 kB / 467.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.114e-05/0.1036, allocations: 116 kB / 467.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.1036, allocations: 15.81 kB / 467.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.305e-05/0.1037, allocations: 17.72 kB / 467.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1038, allocations: 326.8 kB / 467.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.29e-05/0.1039, allocations: 12 kB / 467.8 MB, free: 9.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.875e-05/0.1039, allocations: 34.58 kB / 467.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.114e-05/0.104, allocations: 46.52 kB / 467.9 MB, free: 8.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.104, allocations: 0 / 467.9 MB, free: 8.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001318/0.1042, allocations: 77.53 kB / 467.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1042, allocations: 8 kB / 468 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.1042, allocations: 0 / 468 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.1042, allocations: 4.25 kB / 468 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.1043, allocations: 19.98 kB / 468 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.1043, allocations: 4 kB / 468 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.827e-05/0.1044, allocations: 3.938 kB / 468 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.1044, allocations: 4 kB / 468 MB, free: 8.785 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 (8): * Single equations (assignments): 8 * 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 0.0001085/0.1045, allocations: 129.6 kB / 468.1 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.1046, allocations: 11.89 kB / 468.1 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.287e-05/0.1046, allocations: 12.23 kB / 468.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1046, allocations: 4 kB / 468.1 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.1046, allocations: 4 kB / 468.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1046, allocations: 3.938 kB / 468.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002277/0.1049, allocations: 197.6 kB / 468.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1049, allocations: 0 / 468.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.647e-05/0.105, allocations: 11.98 kB / 468.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.105, allocations: 0 / 468.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.105, allocations: 4.062 kB / 468.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.105, allocations: 160 / 468.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.105, allocations: 0 / 468.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.1052, allocations: 179.3 kB / 468.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.917e-05/0.1052, allocations: 85 kB / 468.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.1053, allocations: 0 / 468.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.1054, allocations: 8.031 kB / 468.6 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.359e-05/0.1054, allocations: 0 / 468.6 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.1054, allocations: 4 kB / 468.6 MB, free: 8.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.276e-05/0.1055, allocations: 109.4 kB / 468.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1055, allocations: 0 / 468.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.1057, allocations: 31.84 kB / 468.8 MB, free: 7.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * 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 (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 Backend phase and start with SimCode phase: time 0.0003778/0.1061, allocations: 0.6968 MB / 469.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.914e-05/0.1062, allocations: 31.94 kB / 469.5 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1062, allocations: 0 / 469.5 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.439e-05/0.1062, allocations: 19.92 kB / 469.5 MB, free: 7.137 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.1066, allocations: 16.17 kB / 469.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.1082, allocations: 1.57 MB / 471.1 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.1085, allocations: 0.708 MB / 471.8 MB, free: 4.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.211e-05/0.1086, allocations: 8.656 kB / 471.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.794e-05/0.1086, allocations: 27.53 kB / 471.8 MB, free: 4.695 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1086, allocations: 7.938 kB / 471.8 MB, free: 4.688 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.1308, allocations: 1.944 MB / 473.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/7.784, allocations: 11.88 kB / 473.8 MB, free: 2.785 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical4_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical4.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe 2>&1)