Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 106.4 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.649/1.649, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 55.92 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1022, allocations: 46.61 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004257/0.1065, allocations: 2.663 MB / 377.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.1079, allocations: 0.7135 MB / 377.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002528/0.1082, allocations: 4 kB / 377.9 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002072/0.1085, allocations: 43.58 kB / 377.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.1088, allocations: 75.27 kB / 378 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003845/0.1092, allocations: 103.8 kB / 378.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005021/0.1097, allocations: 358.5 kB / 378.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.1099, allocations: 96.62 kB / 378.5 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/0.1102, allocations: 139.5 kB / 378.7 MB, free: 384 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.1105, allocations: 163.4 kB / 378.8 MB, free: 220 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.701e-05/0.1105, allocations: 32 kB / 378.9 MB, free: 188 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.355e-05/0.1106, allocations: 28 kB / 378.9 MB, free: 160 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.595e-05/0.1107, allocations: 63.81 kB / 378.9 MB, free: 96 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1937/0.3044, allocations: 152.9 kB / 379.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005532/0.305, allocations: 346.1 kB / 379.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.305, allocations: 0 / 379.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.305, allocations: 0.875 kB / 379.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.097e-05/0.305, allocations: 0 / 379.4 MB, free: 10.07 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001669/0.3067, allocations: 0.6366 MB / 380.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.3068, allocations: 12.05 kB / 380.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.099e-05/0.3069, allocations: 30.31 kB / 380.1 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003996/0.3073, allocations: 259.6 kB / 380.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.3073, allocations: 12.09 kB / 380.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-05/0.3074, allocations: 19.59 kB / 380.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006473/0.308, allocations: 301.1 kB / 380.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.308, allocations: 4.734 kB / 380.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.3081, allocations: 9.562 kB / 380.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.3081, allocations: 5.5 kB / 380.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007475/0.3088, allocations: 266.8 kB / 381 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.3106, allocations: 1.061 MB / 382 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002019/0.3126, allocations: 441.9 kB / 382.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003946/0.313, allocations: 149.2 kB / 382.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.3131, allocations: 4.562 kB / 382.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.3131, allocations: 36.81 kB / 382.6 MB, free: 8.684 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.3131, allocations: 0 / 382.6 MB, free: 8.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004727/0.3178, allocations: 1.025 MB / 383.7 MB, free: 8.508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.3179, allocations: 57.5 kB / 383.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.3181, allocations: 215 kB / 383.9 MB, free: 8.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.3182, allocations: 29.08 kB / 384 MB, free: 8.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.012e-05/0.3183, allocations: 155.7 kB / 384.1 MB, free: 8.195 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.21e-05/0.3183, allocations: 47.97 kB / 384.2 MB, free: 8.164 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.393e-05/0.3184, allocations: 36.42 kB / 384.2 MB, free: 8.148 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.086e-05/0.3185, allocations: 331 kB / 384.5 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003432/0.3188, allocations: 107 kB / 384.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003169/0.3191, allocations: 131.2 kB / 384.8 MB, free: 7.812 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006393/0.3198, allocations: 228.5 kB / 385 MB, free: 7.789 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.3198, allocations: 0 / 385 MB, free: 7.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00282/0.3226, allocations: 0.6325 MB / 385.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.3227, allocations: 6.016 kB / 385.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3227, allocations: 6.125 kB / 385.6 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007657/0.3235, allocations: 215.2 kB / 385.8 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.3236, allocations: 40.34 kB / 385.9 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006653/0.3303, allocations: 2.75 MB / 388.6 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.3307, allocations: 41.27 kB / 388.7 MB, free: 5.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.3307, allocations: 7.391 kB / 388.7 MB, free: 5.984 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.3308, allocations: 143.5 kB / 388.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.256e-05/0.3309, allocations: 17.09 kB / 388.8 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.857e-05/0.331, allocations: 26.22 kB / 388.9 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.331, allocations: 1.188 kB / 388.9 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.331, allocations: 5.125 kB / 388.9 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.331, allocations: 1.172 kB / 388.9 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003689/0.3314, allocations: 326.8 kB / 389.2 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3314, allocations: 0.75 kB / 389.2 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.3315, allocations: 29.23 kB / 389.2 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000638/0.3322, allocations: 215.3 kB / 389.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.3322, allocations: 7.984 kB / 389.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006201/0.3384, allocations: 2.739 MB / 392.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3384, allocations: 0 / 392.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/0.3416, allocations: 0.8453 MB / 393 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.88e-05/0.3417, allocations: 95.45 kB / 393.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.981e-05/0.3417, allocations: 6.625 kB / 393.1 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002844/0.342, allocations: 34.42 kB / 393.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.3421, allocations: 8.719 kB / 393.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/0.3421, allocations: 9.859 kB / 393.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.3423, allocations: 156.6 kB / 393.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3423, allocations: 0 / 393.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005029/0.3428, allocations: 82.38 kB / 393.4 MB, free: 3.207 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * 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 (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001149/0.3429, allocations: 105 kB / 393.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.3444, allocations: 438.7 kB / 393.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3444, allocations: 4.062 kB / 393.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.3455, allocations: 331.7 kB / 394.3 MB, free: 2.793 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.3458, allocations: 34.89 kB / 394.3 MB, free: 2.781 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.3471, allocations: 0.5648 MB / 394.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001809/0.3473, allocations: 0.7437 MB / 395.6 MB, free: 1.762 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.612e-05/0.3473, allocations: 15.64 kB / 395.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.15e-05/0.3474, allocations: 19.81 kB / 395.6 MB, free: 1.746 MB / 318.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3474, allocations: 0 / 395.6 MB, free: 1.746 MB / 318.1 MB Notification: Performance of Templates: time 0.008847/0.3563, allocations: 5.138 MB / 400.8 MB, free: 16 kB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1)