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/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.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.0009717/0.0009717, allocations: 99.62 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.337/1.337, allocations: 223.2 MB / 238.9 MB, free: 5.664 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.00113/0.00113, allocations: 192.3 kB / 290.2 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03217/0.03217, allocations: 8.778 MB / 350 MB, free: 4.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003864/0.0003865, allocations: 8.781 kB / 413.2 MB, free: 43.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1033, allocations: 52.57 MB / 465.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.001829/0.1052, allocations: 1.432 MB / 467.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006361/0.1059, allocations: 435.3 kB / 467.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.192e-05/0.1059, allocations: 0 / 467.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.442e-05/0.106, allocations: 15.91 kB / 467.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.752e-05/0.1061, allocations: 39.92 kB / 467.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001172/0.1062, allocations: 19.92 kB / 467.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.1064, allocations: 83.88 kB / 467.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.1065, allocations: 41.11 kB / 467.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.839e-05/0.1066, allocations: 39.86 kB / 467.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.467e-05/0.1067, allocations: 35.84 kB / 467.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.1067, allocations: 8 kB / 467.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.904e-05/0.1067, allocations: 8 kB / 467.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.305e-05/0.1067, allocations: 23.91 kB / 467.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.633e-05/0.1068, allocations: 41.64 kB / 467.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.531e-05/0.1069, allocations: 84.05 kB / 468 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1069, allocations: 0 / 468 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1069, allocations: 0 / 468 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.1069, allocations: 0 / 468 MB, free: 11.19 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.0005044/0.1074, allocations: 402.9 kB / 468.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.1075, allocations: 11.97 kB / 468.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.527e-05/0.1075, allocations: 46.52 kB / 468.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.418e-05/0.1076, allocations: 7.906 kB / 468.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002109/0.1078, allocations: 202.8 kB / 468.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.1078, allocations: 8 kB / 468.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.1078, allocations: 8 kB / 468.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.108, allocations: 99.19 kB / 468.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.108, allocations: 0 / 468.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.1081, allocations: 4 kB / 468.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1081, allocations: 11.95 kB / 468.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.1082, allocations: 63.91 kB / 468.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007286/0.1089, allocations: 0.4904 MB / 469.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.865e-05/0.109, allocations: 54.44 kB / 469.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.033e-06/0.1091, allocations: 0 / 469.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.1091, allocations: 30.56 kB / 469.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 7.51e-07/0.1091, allocations: 0 / 469.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001957/0.1093, allocations: 65.64 kB / 469.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.1093, allocations: 55.41 kB / 469.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.1095, allocations: 144 kB / 469.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.1095, allocations: 25.7 kB / 469.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.1096, allocations: 124 kB / 469.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.1096, allocations: 15.75 kB / 469.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-06/0.1096, allocations: 0 / 469.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1097, allocations: 322.8 kB / 470.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.515e-05/0.1098, allocations: 11.94 kB / 470.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.817e-05/0.1098, allocations: 38.56 kB / 470.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.588e-05/0.1099, allocations: 16 kB / 470.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1099, allocations: 0 / 470.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001112/0.11, allocations: 85.53 kB / 470.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.11, allocations: 4 kB / 470.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.11, allocations: 4 kB / 470.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.11, allocations: 192 / 470.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.529e-05/0.1101, allocations: 20.02 kB / 470.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.1101, allocations: 4 kB / 470.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.227e-05/0.1102, allocations: 0 / 470.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1102, allocations: 7.984 kB / 470.4 MB, free: 8.602 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.1103, allocations: 125.7 kB / 470.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.1104, allocations: 11.89 kB / 470.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.846e-05/0.1104, allocations: 8.25 kB / 470.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1104, allocations: 0 / 470.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.1104, allocations: 7.953 kB / 470.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1104, allocations: 4 kB / 470.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.1107, allocations: 193.6 kB / 470.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1107, allocations: 0 / 470.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.415e-05/0.1107, allocations: 8 kB / 470.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1107, allocations: 0 / 470.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.1108, allocations: 0 / 470.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1108, allocations: 3.984 kB / 470.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1108, allocations: 0 / 470.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001964/0.111, allocations: 171.3 kB / 470.9 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.35e-05/0.111, allocations: 88.98 kB / 471 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.1111, allocations: 4 kB / 471 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.867e-05/0.1112, allocations: 7.984 kB / 471 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.1112, allocations: 0 / 471 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1112, allocations: 7.938 kB / 471 MB, free: 7.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.868e-05/0.1113, allocations: 104.8 kB / 471.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1113, allocations: 0 / 471.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002248/0.1115, allocations: 27.86 kB / 471.1 MB, free: 7.746 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 (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.0003777/0.1119, allocations: 0.6896 MB / 471.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.632e-05/0.112, allocations: 35.92 kB / 471.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.112, allocations: 0 / 471.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.731e-05/0.112, allocations: 15.94 kB / 471.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.1122, allocations: 16.19 kB / 471.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.1132, allocations: 0.9965 MB / 472.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.1136, allocations: 0.7043 MB / 473.6 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.55e-05/0.1136, allocations: 4.672 kB / 473.6 MB, free: 5.184 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.625e-05/0.1137, allocations: 35.42 kB / 473.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1137, allocations: 0 / 473.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01458/0.1283, allocations: 1.723 MB / 475.3 MB, free: 3.539 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002581/0.1286, allocations: 170.4 kB / 475.5 MB, free: 3.297 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/1.742, allocations: 0 / 475.5 MB, free: 3.297 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/linux/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) Environment - environmentSimulation: