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.001278/0.001278, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.312/1.312, allocations: 222.9 MB / 239 MB, free: 4.758 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.001262/0.001262, allocations: 196.4 kB / 289.3 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03397/0.03397, allocations: 8.793 MB / 348.2 MB, free: 4.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 79.02 kB / 410.7 MB, free: 42.46 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08452/0.08668, allocations: 51.57 MB / 462.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.003051/0.08977, allocations: 1.854 MB / 464.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00077/0.09057, allocations: 466.8 kB / 464.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.09069, allocations: 0 / 464.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.09082, allocations: 15.91 kB / 464.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.368e-05/0.09093, allocations: 27.77 kB / 464.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001264/0.09106, allocations: 15.98 kB / 464.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.09125, allocations: 127.5 kB / 464.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.0914, allocations: 44.91 kB / 464.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.714e-05/0.09147, allocations: 43.86 kB / 464.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.407e-05/0.09158, allocations: 47.77 kB / 464.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.09161, allocations: 12 kB / 464.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.125e-05/0.09164, allocations: 12 kB / 464.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.999e-05/0.09167, allocations: 27.91 kB / 464.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.198e-05/0.09174, allocations: 59.67 kB / 465 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.0919, allocations: 115.9 kB / 465.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.09191, allocations: 0 / 465.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.09192, allocations: 0 / 465.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.09193, allocations: 0 / 465.1 MB, free: 11.95 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.0005273/0.09246, allocations: 415.1 kB / 465.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.09251, allocations: 16.03 kB / 465.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.874e-05/0.09257, allocations: 42.73 kB / 465.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.761e-05/0.09261, allocations: 8.844 kB / 465.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.0928, allocations: 192.2 kB / 465.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.09283, allocations: 16.36 kB / 465.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/0.09286, allocations: 12.31 kB / 465.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.09306, allocations: 103.3 kB / 465.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.09308, allocations: 7.922 kB / 465.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.0931, allocations: 8 kB / 465.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.09311, allocations: 0 / 465.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.09323, allocations: 59.98 kB / 466 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007502/0.09399, allocations: 0.502 MB / 466.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.417e-05/0.0941, allocations: 42.56 kB / 466.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.152e-05/0.09414, allocations: 20.94 kB / 466.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.09415, allocations: 4 kB / 466.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.09418, allocations: 34.56 kB / 466.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.09419, allocations: 0 / 466.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001677/0.09436, allocations: 61.62 kB / 466.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.09441, allocations: 55.41 kB / 466.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.09453, allocations: 148 kB / 466.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.09455, allocations: 29.7 kB / 466.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.915e-05/0.09463, allocations: 112 kB / 467 MB, free: 9.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.09465, allocations: 15.8 kB / 467 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-05/0.09469, allocations: 21.72 kB / 467 MB, free: 9.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.931e-05/0.0948, allocations: 322.8 kB / 467.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.002e-05/0.09483, allocations: 16 kB / 467.3 MB, free: 9.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.968e-05/0.09489, allocations: 42.56 kB / 467.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.448e-05/0.09496, allocations: 46.52 kB / 467.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.09497, allocations: 0 / 467.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001162/0.09509, allocations: 77.53 kB / 467.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.09511, allocations: 8.062 kB / 467.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.09512, allocations: 4 kB / 467.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.09514, allocations: 0 / 467.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.674e-05/0.09524, allocations: 15.98 kB / 467.5 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.832e-06/0.09526, allocations: 7.938 kB / 467.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.014e-05/0.09531, allocations: 7.938 kB / 467.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.09532, allocations: 4.156 kB / 467.5 MB, free: 9.246 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.513e-05/0.09541, allocations: 121.7 kB / 467.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.09545, allocations: 7.906 kB / 467.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.662e-05/0.09548, allocations: 16.25 kB / 467.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.09549, allocations: 3.984 kB / 467.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.0955, allocations: 0 / 467.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.09551, allocations: 0 / 467.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.0957, allocations: 197.5 kB / 467.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.09571, allocations: 0 / 467.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-05/0.09578, allocations: 12.17 kB / 467.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.09579, allocations: 0 / 467.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.09581, allocations: 3.938 kB / 467.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.09581, allocations: 0 / 467.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.09582, allocations: 11.97 kB / 467.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001616/0.09599, allocations: 171.3 kB / 468.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.015e-05/0.09605, allocations: 85 kB / 468.2 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.09608, allocations: 4.062 kB / 468.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.79e-05/0.09618, allocations: 4.031 kB / 468.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.18e-05/0.0962, allocations: 0 / 468.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-06/0.09621, allocations: 8 kB / 468.2 MB, free: 8.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.96e-05/0.09628, allocations: 107.2 kB / 468.3 MB, free: 8.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.09629, allocations: 4.062 kB / 468.3 MB, free: 8.406 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002459/0.09654, allocations: 23.84 kB / 468.3 MB, free: 8.383 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.000385/0.09693, allocations: 0.6967 MB / 469 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.955e-05/0.09704, allocations: 31.98 kB / 469 MB, free: 7.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.09706, allocations: 4.188 kB / 469 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.31e-05/0.09708, allocations: 19.92 kB / 469.1 MB, free: 7.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.09738, allocations: 6.344 kB / 469.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.09886, allocations: 1.607 MB / 470.7 MB, free: 5.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.09912, allocations: 0.6963 MB / 471.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.916e-05/0.09917, allocations: 8.656 kB / 471.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.859e-05/0.09922, allocations: 27.44 kB / 471.4 MB, free: 5.148 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.09923, allocations: 0 / 471.4 MB, free: 5.148 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01198/0.1112, allocations: 1.894 MB / 473.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.1114, allocations: 204.7 kB / 473.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/1.845, allocations: 3.984 kB / 473.5 MB, free: 3.082 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)