Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009897/0.0009898, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007155/0.007155, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.747/1.747, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.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.0005223/0.0005227, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4128, allocations: 47.59 MB / 327 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00456/0.4175, allocations: 2.763 MB / 329.8 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.42, allocations: 0.7656 MB / 330.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000318/0.4204, allocations: 9.469 kB / 330.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002378/0.4207, allocations: 41.41 kB / 330.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002958/0.421, allocations: 90.69 kB / 330.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005637/0.4215, allocations: 94.16 kB / 330.8 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006877/0.4222, allocations: 403.9 kB / 331.2 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003594/0.4226, allocations: 111.1 kB / 331.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003372/0.423, allocations: 134.6 kB / 331.4 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.4233, allocations: 152.9 kB / 331.6 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.212e-05/0.4233, allocations: 18.41 kB / 331.6 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.183e-05/0.4234, allocations: 23.06 kB / 331.6 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.178e-05/0.4235, allocations: 65.72 kB / 331.7 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002769/0.4238, allocations: 193.6 kB / 331.9 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005834/0.4244, allocations: 394.4 kB / 332.3 MB, free: 13.43 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.4244, allocations: 1.156 kB / 332.3 MB, free: 13.43 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.466e-06/0.4244, allocations: 0 / 332.3 MB, free: 13.43 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.4245, allocations: 0 / 332.3 MB, free: 13.43 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001431/0.4259, allocations: 0.5944 MB / 332.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.646e-05/0.426, allocations: 9.531 kB / 332.9 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.4261, allocations: 41.16 kB / 332.9 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.4266, allocations: 281.8 kB / 333.2 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.4267, allocations: 86.78 kB / 333.3 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.248e-05/0.4268, allocations: 33.88 kB / 333.3 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007271/0.4275, allocations: 341 kB / 333.6 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.4276, allocations: 0 / 333.6 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.4276, allocations: 11.16 kB / 333.6 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.4276, allocations: 8.625 kB / 333.6 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005067/0.4282, allocations: 229.8 kB / 333.9 MB, free: 12.17 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002242/0.4304, allocations: 1.384 MB / 335.3 MB, free: 10.92 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003878/0.4308, allocations: 182.5 kB / 335.4 MB, free: 10.73 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.431, allocations: 88.77 kB / 335.5 MB, free: 10.64 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.431, allocations: 7.984 kB / 335.5 MB, free: 10.63 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003846/0.4314, allocations: 153.9 kB / 335.7 MB, free: 10.46 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.963e-06/0.4314, allocations: 0 / 335.7 MB, free: 10.46 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001199/0.4327, allocations: 427 kB / 336.1 MB, free: 10.02 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.053e-05/0.4328, allocations: 110.7 kB / 336.2 MB, free: 9.883 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003035/0.4331, allocations: 258.7 kB / 336.5 MB, free: 9.625 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.4331, allocations: 33.7 kB / 336.5 MB, free: 9.586 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.4333, allocations: 207.8 kB / 336.7 MB, free: 9.379 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.349e-05/0.4334, allocations: 67.09 kB / 336.8 MB, free: 9.312 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.906e-05/0.4335, allocations: 37.7 kB / 336.8 MB, free: 9.27 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.4337, allocations: 334.8 kB / 337.1 MB, free: 8.934 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.4339, allocations: 80.61 kB / 337.2 MB, free: 8.855 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.4342, allocations: 181.5 kB / 337.4 MB, free: 8.637 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000395/0.4346, allocations: 235.5 kB / 337.6 MB, free: 8.371 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.4346, allocations: 4 kB / 337.6 MB, free: 8.367 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007186/0.4353, allocations: 355.6 kB / 338 MB, free: 8.012 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.4353, allocations: 4 kB / 338 MB, free: 8.008 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.4354, allocations: 7.984 kB / 338 MB, free: 8 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003709/0.4357, allocations: 52.98 kB / 338 MB, free: 7.945 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.436, allocations: 71.84 kB / 338.1 MB, free: 7.875 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.4376, allocations: 1.408 MB / 339.5 MB, free: 6.332 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.4379, allocations: 47.67 kB / 339.5 MB, free: 6.285 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.4379, allocations: 12 kB / 339.6 MB, free: 6.273 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001971/0.4381, allocations: 153.9 kB / 339.7 MB, free: 6.113 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.144e-05/0.4382, allocations: 23.72 kB / 339.7 MB, free: 6.09 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.4382, allocations: 26.17 kB / 339.8 MB, free: 6.066 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.4382, allocations: 4 kB / 339.8 MB, free: 6.062 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4383, allocations: 3.938 kB / 339.8 MB, free: 6.059 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.4383, allocations: 3.938 kB / 339.8 MB, free: 6.055 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004124/0.4387, allocations: 353.2 kB / 340.1 MB, free: 5.66 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.4387, allocations: 0 / 340.1 MB, free: 5.66 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.4389, allocations: 43.92 kB / 340.2 MB, free: 5.617 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001769/0.4391, allocations: 48.81 kB / 340.2 MB, free: 5.566 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.4391, allocations: 7.984 kB / 340.2 MB, free: 5.559 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.4403, allocations: 1.327 MB / 341.5 MB, free: 4.098 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4403, allocations: 0 / 341.5 MB, free: 4.098 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007556/0.441, allocations: 358.4 kB / 341.9 MB, free: 3.727 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.4412, allocations: 116.8 kB / 342 MB, free: 3.594 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.4412, allocations: 8.062 kB / 342 MB, free: 3.586 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.4414, allocations: 23.98 kB / 342 MB, free: 3.562 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.397e-05/0.4415, allocations: 23.95 kB / 342.1 MB, free: 3.539 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.4415, allocations: 8 kB / 342.1 MB, free: 3.531 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001778/0.4417, allocations: 186 kB / 342.2 MB, free: 3.348 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.244e-06/0.4417, allocations: 0 / 342.2 MB, free: 3.348 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000418/0.4421, allocations: 95.69 kB / 342.3 MB, free: 3.254 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001598/0.4423, allocations: 103.4 kB / 342.4 MB, free: 3.145 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006332/0.4429, allocations: 318.8 kB / 342.7 MB, free: 2.82 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.443, allocations: 4.188 kB / 342.8 MB, free: 2.816 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003122/0.4433, allocations: 202.6 kB / 343 MB, free: 2.605 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.4436, allocations: 28.55 kB / 343 MB, free: 2.578 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.4453, allocations: 0.8674 MB / 343.8 MB, free: 1.684 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.4457, allocations: 0.7677 MB / 344.6 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.4458, allocations: 30.27 kB / 344.6 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.356e-05/0.4459, allocations: 19.44 kB / 344.7 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4459, allocations: 7.938 kB / 344.7 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of Templates: time 0.0076/0.4535, allocations: 2.774 MB / 347.4 MB, free: 14.06 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)