Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008509/0.0008509, allocations: 93.86 kB / 16.65 MB, free: 6.535 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.001042/0.001042, allocations: 173.9 kB / 17.56 MB, free: 6.184 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.573/1.573, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0009087/0.0009089, allocations: 12 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.103, allocations: 47.58 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002807/0.1058, allocations: 2.495 MB / 330.8 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.1071, allocations: 0.7566 MB / 331.6 MB, free: 496 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002849/0.1074, allocations: 4 kB / 331.6 MB, free: 492 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.1076, allocations: 43.69 kB / 331.6 MB, free: 448 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002377/0.1079, allocations: 71.38 kB / 331.7 MB, free: 376 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.1083, allocations: 91.86 kB / 331.8 MB, free: 284 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004071/0.1087, allocations: 354.4 kB / 332.1 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.1089, allocations: 99.92 kB / 332.2 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.1091, allocations: 115.6 kB / 332.3 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.1092, allocations: 135.3 kB / 332.5 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/0.1093, allocations: 20 kB / 332.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.074e-05/0.1093, allocations: 16 kB / 332.5 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.323e-05/0.1094, allocations: 51.77 kB / 332.5 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.1096, allocations: 176.9 kB / 332.7 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000289/0.1099, allocations: 346.9 kB / 333.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1099, allocations: 0 / 333.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1099, allocations: 0 / 333.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.1099, allocations: 0 / 333.1 MB, free: 14.98 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008666/0.1108, allocations: 0.555 MB / 333.6 MB, free: 14.37 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.1108, allocations: 8.031 kB / 333.6 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.91e-05/0.1109, allocations: 32.56 kB / 333.7 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.1112, allocations: 272.3 kB / 333.9 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-05/0.1113, allocations: 80.61 kB / 334 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.1113, allocations: 32.38 kB / 334 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004583/0.1118, allocations: 305.8 kB / 334.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1118, allocations: 0 / 334.3 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.1119, allocations: 12 kB / 334.3 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.1119, allocations: 4 kB / 334.3 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.1122, allocations: 194.1 kB / 334.5 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001585/0.1138, allocations: 1.143 MB / 335.7 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.1141, allocations: 158.6 kB / 335.8 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.1142, allocations: 80.77 kB / 335.9 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.1143, allocations: 8 kB / 335.9 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.1145, allocations: 149.8 kB / 336.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.1146, allocations: 3.938 kB / 336.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001005/0.1156, allocations: 403.1 kB / 336.5 MB, free: 11.31 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.1156, allocations: 102.8 kB / 336.6 MB, free: 11.19 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.1158, allocations: 225 kB / 336.8 MB, free: 10.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.1159, allocations: 33.7 kB / 336.8 MB, free: 10.92 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.116, allocations: 176.2 kB / 337 MB, free: 10.74 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.792e-05/0.1161, allocations: 71.08 kB / 337.1 MB, free: 10.67 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.763e-05/0.1161, allocations: 33.7 kB / 337.1 MB, free: 10.63 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1163, allocations: 334.8 kB / 337.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.1164, allocations: 67.97 kB / 337.5 MB, free: 10.23 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.1166, allocations: 144.6 kB / 337.6 MB, free: 10.06 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002744/0.1169, allocations: 192.2 kB / 337.8 MB, free: 9.848 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1169, allocations: 4 kB / 337.8 MB, free: 9.844 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000422/0.1173, allocations: 271.6 kB / 338.1 MB, free: 9.57 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.1173, allocations: 6.656 kB / 338.1 MB, free: 9.566 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1174, allocations: 4.219 kB / 338.1 MB, free: 9.562 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002648/0.1176, allocations: 60.81 kB / 338.2 MB, free: 9.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.1178, allocations: 47.92 kB / 338.2 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.1191, allocations: 1.416 MB / 339.6 MB, free: 7.906 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.1193, allocations: 47.86 kB / 339.7 MB, free: 7.859 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.1193, allocations: 15.94 kB / 339.7 MB, free: 7.844 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001509/0.1195, allocations: 141.8 kB / 339.8 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.1195, allocations: 27.64 kB / 339.8 MB, free: 7.668 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.268e-05/0.1196, allocations: 30.19 kB / 339.9 MB, free: 7.641 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1196, allocations: 4 kB / 339.9 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1196, allocations: 0 / 339.9 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1196, allocations: 3.984 kB / 339.9 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.1199, allocations: 309.5 kB / 340.2 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.12, allocations: 4 kB / 340.2 MB, free: 7.277 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.1201, allocations: 35.86 kB / 340.2 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.1203, allocations: 56.81 kB / 340.3 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.1203, allocations: 4 kB / 340.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001066/0.1214, allocations: 1.323 MB / 341.6 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1214, allocations: 0 / 341.6 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006064/0.122, allocations: 342.2 kB / 341.9 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.1222, allocations: 112.8 kB / 342 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.1222, allocations: 3.984 kB / 342.1 MB, free: 5.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1224, allocations: 23.98 kB / 342.1 MB, free: 5.207 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.044e-05/0.1225, allocations: 35.88 kB / 342.1 MB, free: 5.172 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.1225, allocations: 7.938 kB / 342.1 MB, free: 5.164 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001455/0.1226, allocations: 164.5 kB / 342.3 MB, free: 5.004 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1227, allocations: 0 / 342.3 MB, free: 5.004 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003498/0.123, allocations: 79.84 kB / 342.4 MB, free: 4.926 MB / 286.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001331/0.1231, allocations: 103.2 kB / 342.5 MB, free: 4.816 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005664/0.1237, allocations: 286.8 kB / 342.7 MB, free: 4.523 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1237, allocations: 448 / 342.7 MB, free: 4.523 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000284/0.124, allocations: 194.5 kB / 342.9 MB, free: 4.32 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/0.1244, allocations: 40.3 kB / 343 MB, free: 4.281 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.126, allocations: 0.8359 MB / 343.8 MB, free: 3.422 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.1263, allocations: 0.7638 MB / 344.6 MB, free: 2.633 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.1264, allocations: 22.3 kB / 344.6 MB, free: 2.609 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.252e-05/0.1265, allocations: 19.44 kB / 344.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1265, allocations: 0 / 344.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of Templates: time 0.006454/0.1329, allocations: 2.746 MB / 347.4 MB, free: 15.85 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)