Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical5.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.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",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.001299/0.001299, allocations: 108 kB / 15.6 MB, free: 132 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.345/1.345, allocations: 222.9 MB / 239.2 MB, free: 4.562 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.001236/0.001236, allocations: 184.5 kB / 289.6 MB, free: 2.289 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0345/0.0345, allocations: 8.802 MB / 348.5 MB, free: 4.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 80.55 kB / 411.2 MB, free: 41.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09036/0.09192, allocations: 51.56 MB / 462.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical5): time 0.003128/0.0951, allocations: 1.807 MB / 464.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006953/0.09582, allocations: 458.9 kB / 465 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.845e-05/0.09591, allocations: 0 / 465 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.09604, allocations: 19.8 kB / 465 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.082e-05/0.09612, allocations: 39.69 kB / 465.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001487/0.09627, allocations: 27.97 kB / 465.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000158/0.09644, allocations: 115.5 kB / 465.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.0966, allocations: 44.95 kB / 465.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.356e-05/0.09666, allocations: 51.8 kB / 465.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.491e-05/0.09675, allocations: 51.77 kB / 465.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.889e-05/0.09678, allocations: 12 kB / 465.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.444e-05/0.09681, allocations: 8 kB / 465.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.877e-05/0.09685, allocations: 23.92 kB / 465.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.8e-05/0.09692, allocations: 55.73 kB / 465.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.09707, allocations: 119.9 kB / 465.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.09708, allocations: 0 / 465.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09709, allocations: 7.875 kB / 465.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.0971, allocations: 0 / 465.6 MB, free: 11.34 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.0005495/0.09765, allocations: 412.8 kB / 466 MB, free: 10.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.09769, allocations: 12.03 kB / 466 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.669e-05/0.09775, allocations: 46.73 kB / 466 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.368e-05/0.09779, allocations: 8.844 kB / 466 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.098, allocations: 200.1 kB / 466.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.09802, allocations: 4.375 kB / 466.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.09807, allocations: 16.31 kB / 466.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.09825, allocations: 103.3 kB / 466.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.09827, allocations: 0 / 466.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.09829, allocations: 12 kB / 466.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.0983, allocations: 0 / 466.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.09842, allocations: 59.97 kB / 466.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007562/0.09918, allocations: 0.4981 MB / 466.9 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.752e-05/0.09928, allocations: 50.56 kB / 467 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.825e-05/0.09932, allocations: 20.94 kB / 467 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.09934, allocations: 0 / 467 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.09937, allocations: 34.56 kB / 467 MB, free: 9.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.09937, allocations: 0 / 467 MB, free: 9.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001783/0.09955, allocations: 61.62 kB / 467.1 MB, free: 9.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.09961, allocations: 51.41 kB / 467.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.09973, allocations: 151.7 kB / 467.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.09976, allocations: 25.7 kB / 467.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.913e-05/0.09983, allocations: 120 kB / 467.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.337e-05/0.09985, allocations: 15.8 kB / 467.4 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.09989, allocations: 21.72 kB / 467.5 MB, free: 9.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1, allocations: 326.8 kB / 467.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.716e-05/0.1001, allocations: 12 kB / 467.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.212e-05/0.1001, allocations: 34.55 kB / 467.8 MB, free: 8.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.503e-05/0.1002, allocations: 46.52 kB / 467.9 MB, free: 8.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1002, allocations: 0 / 467.9 MB, free: 8.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000129/0.1003, allocations: 89.53 kB / 468 MB, free: 8.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.1003, allocations: 4 kB / 468 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1003, allocations: 160 / 468 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.1004, allocations: 4 kB / 468 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.664e-05/0.1005, allocations: 15.98 kB / 468 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.1005, allocations: 3.984 kB / 468 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.817e-05/0.1005, allocations: 11.88 kB / 468 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.1005, allocations: 8 kB / 468 MB, free: 8.641 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 8.549e-05/0.1006, allocations: 129.8 kB / 468.1 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.1007, allocations: 7.906 kB / 468.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.852e-05/0.1007, allocations: 12.25 kB / 468.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1007, allocations: 0 / 468.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1007, allocations: 3.938 kB / 468.2 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1007, allocations: 4.172 kB / 468.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002064/0.1009, allocations: 193.6 kB / 468.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1009, allocations: 0 / 468.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.1011, allocations: 11.98 kB / 468.4 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1011, allocations: 3.984 kB / 468.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.1011, allocations: 4 kB / 468.4 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1011, allocations: 4 kB / 468.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1011, allocations: 0 / 468.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.1013, allocations: 167.3 kB / 468.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.1014, allocations: 85 kB / 468.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.1014, allocations: 8.031 kB / 468.6 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.204e-05/0.1015, allocations: 0 / 468.6 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.672e-05/0.1015, allocations: 4.062 kB / 468.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.1015, allocations: 4 kB / 468.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.272e-05/0.1016, allocations: 109.3 kB / 468.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1016, allocations: 0 / 468.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002539/0.1019, allocations: 31.84 kB / 468.8 MB, free: 7.777 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.0003958/0.1023, allocations: 0.689 MB / 469.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.1024, allocations: 35.98 kB / 469.5 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1024, allocations: 0 / 469.5 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.275e-05/0.1024, allocations: 19.92 kB / 469.5 MB, free: 7.008 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.1027, allocations: 12 kB / 469.5 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.1042, allocations: 1.577 MB / 471.1 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.1045, allocations: 0.7041 MB / 471.8 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.035e-05/0.1046, allocations: 12.77 kB / 471.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.821e-05/0.1046, allocations: 27.38 kB / 471.9 MB, free: 4.562 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1046, allocations: 3.938 kB / 471.9 MB, free: 4.559 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.1233, allocations: 1.956 MB / 473.8 MB, free: 2.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.649/7.773, allocations: 9.75 kB / 473.8 MB, free: 2.652 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical5.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.FirstSteps.Electrical5_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_Electrical5.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe 2>&1)