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/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.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.0008557/0.0008556, allocations: 92 kB / 15.06 MB, free: 1.098 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.35/1.35, allocations: 223.3 MB / 239 MB, free: 5.453 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.0009672/0.0009674, allocations: 176.5 kB / 290.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03386/0.03386, allocations: 8.785 MB / 350.1 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003624, allocations: 9.656 kB / 413.3 MB, free: 42.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0778/0.07819, allocations: 52.56 MB / 465.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical5): time 0.001785/0.08001, allocations: 1.485 MB / 467.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006304/0.08065, allocations: 423.2 kB / 467.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.421e-05/0.08075, allocations: 4 kB / 467.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.565e-05/0.08084, allocations: 11.91 kB / 467.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.941e-05/0.08091, allocations: 35.77 kB / 467.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001212/0.08104, allocations: 15.98 kB / 467.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.08119, allocations: 115.5 kB / 467.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.08134, allocations: 41.16 kB / 468 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.428e-05/0.08141, allocations: 35.8 kB / 468 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.85e-05/0.0815, allocations: 43.84 kB / 468 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.08153, allocations: 8 kB / 468 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.069e-05/0.08155, allocations: 8 kB / 468 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.227e-05/0.08158, allocations: 19.92 kB / 468.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.679e-05/0.08163, allocations: 45.58 kB / 468.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.08175, allocations: 88.03 kB / 468.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.08176, allocations: 0 / 468.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.08177, allocations: 0 / 468.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.08178, allocations: 0 / 468.2 MB, free: 11.02 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.0004862/0.08227, allocations: 402.9 kB / 468.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.08232, allocations: 8.031 kB / 468.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.288e-05/0.08239, allocations: 54.44 kB / 468.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.549e-05/0.08243, allocations: 7.906 kB / 468.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.08264, allocations: 190.9 kB / 468.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.08266, allocations: 4 kB / 468.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.08269, allocations: 12 kB / 468.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.0829, allocations: 107.1 kB / 469 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.08291, allocations: 0 / 469 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.08293, allocations: 12 kB / 469 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.08295, allocations: 3.953 kB / 469 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.08308, allocations: 59.97 kB / 469 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007175/0.0838, allocations: 0.4943 MB / 469.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.212e-05/0.08391, allocations: 50.5 kB / 469.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.188e-05/0.08395, allocations: 20.94 kB / 469.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.454e-06/0.08396, allocations: 0 / 469.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.084, allocations: 34.56 kB / 469.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.08401, allocations: 0 / 469.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001552/0.08417, allocations: 69.48 kB / 469.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.08421, allocations: 55.41 kB / 469.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.08433, allocations: 140 kB / 469.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.08435, allocations: 25.7 kB / 469.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.989e-05/0.08441, allocations: 116 kB / 470 MB, free: 8.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.08444, allocations: 19.73 kB / 470.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-06/0.08445, allocations: 0 / 470.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.08456, allocations: 326.8 kB / 470.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.668e-05/0.08459, allocations: 11.98 kB / 470.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.849e-05/0.08464, allocations: 30.58 kB / 470.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.531e-05/0.08468, allocations: 16 kB / 470.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.08468, allocations: 0 / 470.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001107/0.0848, allocations: 77.53 kB / 470.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.08484, allocations: 16.05 kB / 470.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.08484, allocations: 0 / 470.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.08486, allocations: 7.891 kB / 470.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.106e-05/0.08496, allocations: 24 kB / 470.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.08497, allocations: 4 kB / 470.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.955e-05/0.08502, allocations: 192 / 470.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.08503, allocations: 4 kB / 470.6 MB, free: 8.406 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 7.488e-05/0.08511, allocations: 113.8 kB / 470.7 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.043e-05/0.08514, allocations: 11.89 kB / 470.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.473e-05/0.08518, allocations: 16.23 kB / 470.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.08519, allocations: 4 kB / 470.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.0852, allocations: 3.953 kB / 470.7 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.0852, allocations: 3.938 kB / 470.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.0854, allocations: 193.6 kB / 470.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.08541, allocations: 0 / 470.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.449e-05/0.08548, allocations: 8 kB / 470.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.0855, allocations: 0 / 470.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.08551, allocations: 3.938 kB / 470.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.08552, allocations: 0 / 470.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.08552, allocations: 4 kB / 470.9 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.08571, allocations: 167.4 kB / 471.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.451e-05/0.08578, allocations: 88.98 kB / 471.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.0858, allocations: 0 / 471.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.425e-05/0.08589, allocations: 8 kB / 471.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.53e-05/0.08591, allocations: 3.984 kB / 471.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.08592, allocations: 4 kB / 471.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.256e-05/0.086, allocations: 111.3 kB / 471.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.08601, allocations: 0 / 471.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.08625, allocations: 23.91 kB / 471.3 MB, free: 7.555 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.0004227/0.08668, allocations: 0.6934 MB / 472 MB, free: 6.836 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.847e-05/0.08679, allocations: 36.05 kB / 472 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.0868, allocations: 4 kB / 472 MB, free: 6.797 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.106e-05/0.08684, allocations: 12 kB / 472.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.08712, allocations: 9.719 kB / 472.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009567/0.08809, allocations: 0.6993 MB / 472.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.08837, allocations: 0.6965 MB / 473.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.359e-05/0.08843, allocations: 8.656 kB / 473.5 MB, free: 5.301 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.643e-05/0.08848, allocations: 31.36 kB / 473.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of SimCode: time 1.644e-06/0.08849, allocations: 0 / 473.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01154/0.1, allocations: 1.742 MB / 475.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002926/0.1004, allocations: 177.2 kB / 475.4 MB, free: 3.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.594/1.694, allocations: 0 / 475.4 MB, free: 3.398 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical5.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe 2>&1) Environment - environmentSimulation: