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.001204/0.001204, allocations: 108 kB / 15.61 MB, free: 152 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.422/1.422, allocations: 222.9 MB / 239.3 MB, free: 4.594 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.001383/0.001384, allocations: 192.5 kB / 289.5 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03413/0.03413, allocations: 8.792 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 77.75 kB / 411.2 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.0992, allocations: 51.57 MB / 462.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.003914/0.1031, allocations: 1.792 MB / 464.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.1042, allocations: 466.8 kB / 465 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.1044, allocations: 3.938 kB / 465 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.1046, allocations: 19.84 kB / 465 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001709/0.1048, allocations: 35.7 kB / 465.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002052/0.105, allocations: 27.91 kB / 465.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000196/0.1052, allocations: 119.5 kB / 465.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.1053, allocations: 44.95 kB / 465.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.09e-05/0.1054, allocations: 47.86 kB / 465.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.579e-05/0.1055, allocations: 51.77 kB / 465.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.592e-05/0.1055, allocations: 15.94 kB / 465.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.317e-05/0.1056, allocations: 8 kB / 465.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.868e-05/0.1056, allocations: 19.92 kB / 465.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.24e-05/0.1057, allocations: 59.73 kB / 465.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.1058, allocations: 119.9 kB / 465.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1058, allocations: 0 / 465.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1058, allocations: 0 / 465.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1059, allocations: 0 / 465.6 MB, free: 11.43 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.0005502/0.1064, allocations: 411.1 kB / 466 MB, free: 10.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1065, allocations: 12.03 kB / 466 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.472e-05/0.1065, allocations: 46.73 kB / 466 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.71e-05/0.1066, allocations: 8.844 kB / 466 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.1068, allocations: 192.2 kB / 466.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.1068, allocations: 8.375 kB / 466.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.547e-05/0.1068, allocations: 12.36 kB / 466.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.107, allocations: 107.3 kB / 466.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.107, allocations: 7.938 kB / 466.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.1071, allocations: 4 kB / 466.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1071, allocations: 0 / 466.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001211/0.1072, allocations: 59.92 kB / 466.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008946/0.1081, allocations: 0.5059 MB / 466.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.1082, allocations: 54.5 kB / 467 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.29e-05/0.1083, allocations: 16.94 kB / 467 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.1083, allocations: 4 kB / 467 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.1083, allocations: 34.56 kB / 467 MB, free: 9.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.1084, allocations: 0 / 467 MB, free: 9.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002022/0.1086, allocations: 57.69 kB / 467.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.1086, allocations: 51.41 kB / 467.1 MB, free: 9.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.1088, allocations: 149.7 kB / 467.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.1088, allocations: 25.7 kB / 467.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.24e-05/0.1089, allocations: 123.9 kB / 467.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.515e-05/0.1089, allocations: 11.81 kB / 467.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.109, allocations: 21.66 kB / 467.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1091, allocations: 330.8 kB / 467.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.902e-05/0.1091, allocations: 12 kB / 467.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.332e-05/0.1092, allocations: 34.56 kB / 467.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.158e-05/0.1093, allocations: 42.58 kB / 467.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1093, allocations: 0 / 467.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001226/0.1094, allocations: 89.53 kB / 468 MB, free: 8.766 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.1094, allocations: 10.12 kB / 468 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1094, allocations: 0 / 468 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.1095, allocations: 0 / 468 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.1096, allocations: 19.98 kB / 468 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1096, allocations: 0 / 468 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.685e-05/0.1096, allocations: 3.938 kB / 468 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-06/0.1096, allocations: 4 kB / 468 MB, free: 8.73 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 9.374e-05/0.1097, allocations: 129.8 kB / 468.1 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.1098, allocations: 7.906 kB / 468.1 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.795e-05/0.1098, allocations: 16.23 kB / 468.1 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1098, allocations: 0 / 468.1 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1098, allocations: 0 / 468.1 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1098, allocations: 0 / 468.1 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.11, allocations: 201.5 kB / 468.3 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.11, allocations: 3.984 kB / 468.3 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.978e-05/0.1101, allocations: 11.94 kB / 468.4 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1101, allocations: 0 / 468.4 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.1101, allocations: 4.062 kB / 468.4 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.1101, allocations: 8 kB / 468.4 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1102, allocations: 0 / 468.4 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001781/0.1103, allocations: 171.4 kB / 468.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-05/0.1104, allocations: 81.02 kB / 468.6 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.1104, allocations: 4 kB / 468.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.01e-05/0.1105, allocations: 4.031 kB / 468.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.825e-05/0.1105, allocations: 4.062 kB / 468.6 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.1105, allocations: 4 kB / 468.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.157e-05/0.1106, allocations: 107.2 kB / 468.7 MB, free: 7.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1106, allocations: 0 / 468.7 MB, free: 7.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.1109, allocations: 31.84 kB / 468.8 MB, free: 7.859 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.0004364/0.1113, allocations: 0.6929 MB / 469.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.1114, allocations: 35.94 kB / 469.5 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.1115, allocations: 3.938 kB / 469.5 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.161e-05/0.1115, allocations: 16.27 kB / 469.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.1118, allocations: 12 kB / 469.5 MB, free: 7.074 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.1134, allocations: 1.576 MB / 471.1 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.1138, allocations: 0.7002 MB / 471.8 MB, free: 4.684 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.172e-05/0.1138, allocations: 12.66 kB / 471.8 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.237e-05/0.1139, allocations: 31.42 kB / 471.8 MB, free: 4.641 MB / 302.1 MB Notification: Performance of SimCode: time 2.224e-06/0.1139, allocations: 112 / 471.8 MB, free: 4.641 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.137, allocations: 1.952 MB / 473.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.462/7.599, allocations: 11 kB / 473.8 MB, free: 2.734 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.FirstSteps.Electrical4_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_FirstSteps_Electrical4.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe 2>&1)