Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 222.9 MB / 240.9 MB, free: 10.98 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.001414/0.001414, allocations: 100.7 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.00113, allocations: 39.94 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3275, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003845/0.3315, allocations: 2.734 MB / 402.2 MB, free: 30.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.3328, allocations: 0.6593 MB / 402.9 MB, free: 29.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001653/0.333, allocations: 4 kB / 402.9 MB, free: 29.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.3332, allocations: 39.69 kB / 402.9 MB, free: 29.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.3334, allocations: 59.47 kB / 403 MB, free: 29.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.3338, allocations: 91.83 kB / 403.1 MB, free: 29.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003275/0.3341, allocations: 350.5 kB / 403.4 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002116/0.3343, allocations: 77.16 kB / 403.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.3345, allocations: 127.5 kB / 403.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.3347, allocations: 151.4 kB / 403.7 MB, free: 29.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.486e-05/0.3348, allocations: 19.94 kB / 403.8 MB, free: 29.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.506e-05/0.3348, allocations: 20 kB / 403.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.588e-05/0.3349, allocations: 59.73 kB / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.335, allocations: 135.3 kB / 404 MB, free: 28.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002726/0.3353, allocations: 328.4 kB / 404.3 MB, free: 28.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3353, allocations: 0 / 404.3 MB, free: 28.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3353, allocations: 0 / 404.3 MB, free: 28.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.3353, allocations: 4 kB / 404.3 MB, free: 28.53 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001456/0.3368, allocations: 0.6354 MB / 404.9 MB, free: 27.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.259e-05/0.3369, allocations: 12.03 kB / 404.9 MB, free: 27.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.139e-05/0.337, allocations: 28.56 kB / 405 MB, free: 27.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.3373, allocations: 260.6 kB / 405.2 MB, free: 27.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.3373, allocations: 12.81 kB / 405.2 MB, free: 27.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.702e-05/0.3374, allocations: 20.38 kB / 405.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006016/0.338, allocations: 302.9 kB / 405.6 MB, free: 27.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.338, allocations: 0 / 405.6 MB, free: 27.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.939e-05/0.338, allocations: 11.94 kB / 405.6 MB, free: 27.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.3381, allocations: 11.98 kB / 405.6 MB, free: 27.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006822/0.3387, allocations: 273.5 kB / 405.8 MB, free: 26.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.3402, allocations: 1.062 MB / 406.9 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001759/0.342, allocations: 438.3 kB / 407.3 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003544/0.3424, allocations: 144.8 kB / 407.5 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.3424, allocations: 0 / 407.5 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.3425, allocations: 38.81 kB / 407.5 MB, free: 25.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.763e-06/0.3425, allocations: 0 / 407.5 MB, free: 25.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.00469/0.3472, allocations: 1.022 MB / 408.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.074e-05/0.3473, allocations: 59.39 kB / 408.6 MB, free: 23.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.3476, allocations: 212.2 kB / 408.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.3476, allocations: 29.7 kB / 408.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.3478, allocations: 160.1 kB / 409 MB, free: 23.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.638e-05/0.3478, allocations: 47.3 kB / 409 MB, free: 23.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.181e-05/0.3479, allocations: 41.59 kB / 409.1 MB, free: 23.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.348, allocations: 334.8 kB / 409.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/0.3484, allocations: 103.9 kB / 409.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.3487, allocations: 126.7 kB / 409.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00059/0.3493, allocations: 220.6 kB / 409.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.3493, allocations: 0 / 409.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002694/0.352, allocations: 0.6422 MB / 410.5 MB, free: 22.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.317e-05/0.3521, allocations: 8 kB / 410.5 MB, free: 22.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.3521, allocations: 0 / 410.5 MB, free: 22.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007845/0.3529, allocations: 224.6 kB / 410.7 MB, free: 21.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.3531, allocations: 39.91 kB / 410.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006068/0.3592, allocations: 2.486 MB / 413.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.3596, allocations: 39.95 kB / 413.3 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.202e-05/0.3596, allocations: 7.984 kB / 413.3 MB, free: 19.1 MB / 298.7 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.0002223/0.3598, allocations: 129.8 kB / 413.4 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.616e-05/0.3599, allocations: 23.66 kB / 413.4 MB, free: 18.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.47e-05/0.36, allocations: 25.61 kB / 413.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.36, allocations: 7.984 kB / 413.5 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.36, allocations: 4 kB / 413.5 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.36, allocations: 0 / 413.5 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004142/0.3604, allocations: 325.4 kB / 413.8 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.3604, allocations: 0 / 413.8 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.3606, allocations: 31.86 kB / 413.8 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005978/0.3612, allocations: 216.7 kB / 414 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.3612, allocations: 11.98 kB / 414 MB, free: 18.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005513/0.3668, allocations: 2.47 MB / 416.5 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3668, allocations: 0 / 416.5 MB, free: 15.67 MB / 298.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02338/0.3902, allocations: 7.125 MB / 423.6 MB, free: 8.262 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.