Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.006135/0.006135, allocations: 101.9 kB / 15.73 MB, free: 6.062 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.001272/0.001272, allocations: 192.2 kB / 16.67 MB, free: 5.973 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.624/1.624, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.002074/0.002074, allocations: 55.92 kB / 326.6 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1305, allocations: 46.62 MB / 373.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004713/0.1352, allocations: 2.667 MB / 375.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.1369, allocations: 0.7057 MB / 376.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002814/0.1372, allocations: 4 kB / 376.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002525/0.1375, allocations: 51.5 kB / 376.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003357/0.1379, allocations: 67.34 kB / 376.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00048/0.1384, allocations: 111.8 kB / 376.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006282/0.139, allocations: 362.4 kB / 377.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.1393, allocations: 92.64 kB / 377.2 MB, free: 492 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003862/0.1397, allocations: 139.5 kB / 377.3 MB, free: 352 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/0.14, allocations: 167.3 kB / 377.5 MB, free: 184 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.716e-05/0.1401, allocations: 32 kB / 377.5 MB, free: 152 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.665e-05/0.1402, allocations: 28 kB / 377.6 MB, free: 124 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.412e-05/0.1403, allocations: 75.73 kB / 377.6 MB, free: 48 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2581/0.3985, allocations: 136.2 kB / 377.8 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005255/0.399, allocations: 343.8 kB / 378.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.399, allocations: 1.281 kB / 378.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.399, allocations: 0 / 378.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.3991, allocations: 0 / 378.1 MB, free: 10.13 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.001383/0.4004, allocations: 0.6468 MB / 378.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4005, allocations: 9.625 kB / 378.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.233e-05/0.4006, allocations: 31.34 kB / 378.8 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.4009, allocations: 256.2 kB / 379.1 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.401, allocations: 18.72 kB / 379.1 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.361e-05/0.401, allocations: 22.41 kB / 379.1 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007358/0.4018, allocations: 295.9 kB / 379.4 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.4018, allocations: 6.469 kB / 379.4 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.4018, allocations: 9.375 kB / 379.4 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.4018, allocations: 5.5 kB / 379.4 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008277/0.4027, allocations: 268.7 kB / 379.7 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00188/0.4046, allocations: 1.063 MB / 380.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002118/0.4067, allocations: 436.8 kB / 381.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004176/0.4071, allocations: 141.9 kB / 381.3 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.4072, allocations: 7.672 kB / 381.3 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.4072, allocations: 38.66 kB / 381.3 MB, free: 8.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.4072, allocations: 0 / 381.3 MB, free: 8.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004809/0.412, allocations: 1.019 MB / 382.4 MB, free: 8.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.4121, allocations: 53.58 kB / 382.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.4123, allocations: 216.2 kB / 382.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.4123, allocations: 29.92 kB / 382.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.698e-05/0.4124, allocations: 165 kB / 382.8 MB, free: 8.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/0.4125, allocations: 53.42 kB / 382.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.043e-05/0.4126, allocations: 33.84 kB / 382.9 MB, free: 8.203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.042e-05/0.4126, allocations: 329.3 kB / 383.2 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.413, allocations: 105.4 kB / 383.3 MB, free: 7.891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003379/0.4133, allocations: 128.1 kB / 383.4 MB, free: 7.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006416/0.414, allocations: 228.7 kB / 383.7 MB, free: 7.848 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.414, allocations: 1.188 kB / 383.7 MB, free: 7.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002888/0.4169, allocations: 0.642 MB / 384.3 MB, free: 7.777 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.4169, allocations: 5.688 kB / 384.3 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.4169, allocations: 1.062 kB / 384.3 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008045/0.4177, allocations: 218.9 kB / 384.5 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.4179, allocations: 35.3 kB / 384.6 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006834/0.4248, allocations: 2.752 MB / 387.3 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.4251, allocations: 37.81 kB / 387.4 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.434e-05/0.4251, allocations: 5.922 kB / 387.4 MB, free: 6.008 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.0001631/0.4253, allocations: 139.8 kB / 387.5 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.4254, allocations: 22.36 kB / 387.5 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.043e-05/0.4254, allocations: 24.58 kB / 387.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.4254, allocations: 2.953 kB / 387.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.4254, allocations: 0 / 387.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4255, allocations: 1.641 kB / 387.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.4259, allocations: 325.3 kB / 387.9 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.4259, allocations: 1.312 kB / 387.9 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.426, allocations: 38.73 kB / 387.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006885/0.4267, allocations: 215 kB / 388.1 MB, free: 5.539 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.4268, allocations: 7.766 kB / 388.1 MB, free: 5.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006226/0.433, allocations: 2.738 MB / 390.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.433, allocations: 0 / 390.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003228/0.4363, allocations: 0.8568 MB / 391.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.308e-05/0.4364, allocations: 96.3 kB / 391.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.4364, allocations: 5.469 kB / 391.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002883/0.4367, allocations: 29.73 kB / 391.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.71e-05/0.4368, allocations: 11.52 kB / 391.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.4368, allocations: 10.27 kB / 391.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001352/0.4369, allocations: 164.3 kB / 392 MB, free: 3.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4369, allocations: 0 / 392 MB, free: 3.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004707/0.4374, allocations: 82.25 kB / 392.1 MB, free: 3.215 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.0001424/0.4376, allocations: 102 kB / 392.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.4392, allocations: 449.5 kB / 392.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4392, allocations: 0 / 392.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.4403, allocations: 332.1 kB / 393 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.4406, allocations: 38.22 kB / 393 MB, free: 2.781 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.442, allocations: 0.5536 MB / 393.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.4423, allocations: 0.7477 MB / 394.3 MB, free: 1.762 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.109e-05/0.4424, allocations: 15.08 kB / 394.3 MB, free: 1.758 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.906e-05/0.4424, allocations: 15.53 kB / 394.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4424, allocations: 2.406 kB / 394.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of Templates: time 0.009498/0.4519, allocations: 4.977 MB / 399.3 MB, free: 108 kB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1)