Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.FirstSteps.Electrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical2") translateModel(HanserModelica.FirstSteps.Electrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.001151, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03944/0.03944, allocations: 8.794 MB / 25.53 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 251.3 MB, free: 7.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001123, allocations: 102.5 kB / 303.6 MB, free: 14.53 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 71.89 kB / 366 MB, free: 208 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.201, allocations: 51.55 MB / 417.5 MB, free: 20.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001428/0.2024, allocations: 0.5693 MB / 418.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001062/0.2025, allocations: 35.88 kB / 418.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.918e-05/0.2026, allocations: 0 / 418.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.637e-05/0.2026, allocations: 0 / 418.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.459e-05/0.2026, allocations: 0 / 418.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.128e-05/0.2027, allocations: 4 kB / 418.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.437e-05/0.2028, allocations: 19.88 kB / 418.2 MB, free: 20.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.922e-05/0.2028, allocations: 7.984 kB / 418.2 MB, free: 20.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.56e-05/0.2028, allocations: 3.938 kB / 418.2 MB, free: 20.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.259e-05/0.2029, allocations: 4 kB / 418.2 MB, free: 20.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.2029, allocations: 0 / 418.2 MB, free: 20.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.895e-06/0.2029, allocations: 0 / 418.2 MB, free: 20.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.252e-05/0.2029, allocations: 7.984 kB / 418.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.092e-05/0.203, allocations: 7.938 kB / 418.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.083e-05/0.203, allocations: 11.92 kB / 418.2 MB, free: 20.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.203, allocations: 4 kB / 418.2 MB, free: 20.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.203, allocations: 0 / 418.2 MB, free: 20.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.996e-06/0.203, allocations: 0 / 418.2 MB, free: 20.28 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002577/0.2033, allocations: 329.6 kB / 418.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.2033, allocations: 8.031 kB / 418.5 MB, free: 19.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.365e-05/0.2034, allocations: 0.9375 kB / 418.5 MB, free: 19.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.681e-05/0.2034, allocations: 164.4 kB / 418.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.2034, allocations: 384 / 418.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/0.2035, allocations: 384 / 418.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.555e-05/0.2035, allocations: 42.25 kB / 418.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.2036, allocations: 192 / 418.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.313e-06/0.2036, allocations: 3.938 kB / 418.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2036, allocations: 4 kB / 418.7 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.822e-05/0.2036, allocations: 11.92 kB / 418.8 MB, free: 19.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001136/0.2037, allocations: 153.6 kB / 418.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.455e-05/0.2038, allocations: 34.61 kB / 418.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.236e-05/0.2038, allocations: 16.8 kB / 419 MB, free: 19.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.838e-06/0.2038, allocations: 4 kB / 419 MB, free: 19.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.477e-05/0.2039, allocations: 38.64 kB / 419 MB, free: 19.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.2039, allocations: 0 / 419 MB, free: 19.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001083/0.204, allocations: 49.58 kB / 419 MB, free: 19.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.734e-05/0.204, allocations: 55.39 kB / 419.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.893e-05/0.204, allocations: 97.86 kB / 419.2 MB, free: 19.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.34e-06/0.204, allocations: 25.7 kB / 419.2 MB, free: 19.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.592e-05/0.2041, allocations: 84.14 kB / 419.3 MB, free: 18.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.2041, allocations: 15.81 kB / 419.3 MB, free: 18.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.249e-05/0.2041, allocations: 17.7 kB / 419.3 MB, free: 18.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.594e-05/0.2042, allocations: 314.8 kB / 419.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.218e-05/0.2042, allocations: 4 kB / 419.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.947e-06/0.2042, allocations: 4 kB / 419.6 MB, free: 18.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.07e-05/0.2042, allocations: 29.25 kB / 419.7 MB, free: 18.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2042, allocations: 0 / 419.7 MB, free: 18.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.909e-05/0.2043, allocations: 45.69 kB / 419.7 MB, free: 18.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.2043, allocations: 15.92 kB / 419.7 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2043, allocations: 3.938 kB / 419.7 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.2043, allocations: 0 / 419.7 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.343e-05/0.2044, allocations: 8 kB / 419.7 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.2044, allocations: 0 / 419.7 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.541e-05/0.2044, allocations: 4 kB / 419.8 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.577e-06/0.2044, allocations: 0 / 419.8 MB, free: 18.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (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 prepare postOptimizeDAE: time 3.539e-05/0.2045, allocations: 110.3 kB / 419.9 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.894e-06/0.2045, allocations: 7.906 kB / 419.9 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.572e-05/0.2045, allocations: 19.42 kB / 419.9 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2045, allocations: 0 / 419.9 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2045, allocations: 3.938 kB / 419.9 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.2045, allocations: 0 / 419.9 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.046e-05/0.2046, allocations: 153.7 kB / 420 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.2046, allocations: 0 / 420 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.665e-05/0.2047, allocations: 8 kB / 420 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2047, allocations: 0 / 420 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.2047, allocations: 3.938 kB / 420.1 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2047, allocations: 8 kB / 420.1 MB, free: 18.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2047, allocations: 4 kB / 420.1 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.2053, allocations: 0.9267 MB / 421 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.265e-05/0.2053, allocations: 81.34 kB / 421.1 MB, free: 16.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.342e-06/0.2053, allocations: 8.016 kB / 421.1 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.475e-05/0.2053, allocations: 0 / 421.1 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.06e-05/0.2053, allocations: 7.984 kB / 421.1 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.2054, allocations: 3.938 kB / 421.1 MB, free: 16.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.493e-05/0.2054, allocations: 79.28 kB / 421.2 MB, free: 16.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2054, allocations: 0 / 421.2 MB, free: 16.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000229/0.2056, allocations: 8 kB / 421.2 MB, free: 16.86 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (3): * Single equations (assignments): 3 * 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 4.733e-05/0.2057, allocations: 95.25 kB / 421.3 MB, free: 16.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.404e-05/0.2057, allocations: 19.92 kB / 421.3 MB, free: 16.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2057, allocations: 0 / 421.3 MB, free: 16.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.087e-05/0.2057, allocations: 8 kB / 421.3 MB, free: 16.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.2059, allocations: 13.09 kB / 421.3 MB, free: 16.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003183/0.2062, allocations: 293.2 kB / 421.6 MB, free: 16.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.477e-05/0.2063, allocations: 0.677 MB / 422.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.469e-05/0.2063, allocations: 0 / 422.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.403e-05/0.2063, allocations: 15.38 kB / 422.3 MB, free: 15.67 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2063, allocations: 0 / 422.3 MB, free: 15.67 MB / 298.7 MB Notification: Performance of Templates: time 0.001539/0.2079, allocations: 289.1 kB / 422.6 MB, free: 15.39 MB / 298.7 MB make -j1 -f HanserModelica_HanserModelica.FirstSteps.Electrical2.makefile (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & ./HanserModelica_HanserModelica.FirstSteps.Electrical2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)