Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.01097/0.01097, allocations: 99.88 kB / 15.73 MB, free: 6.047 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.001911/0.001911, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.518/1.518, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001317/0.001317, allocations: 59.2 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1018, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004786/0.1066, allocations: 2.816 MB / 376 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.1084, allocations: 0.7718 MB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002974/0.1087, allocations: 4 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002548/0.109, allocations: 47.5 kB / 376.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003475/0.1093, allocations: 87.19 kB / 376.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000462/0.1098, allocations: 107.7 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004978/0.1103, allocations: 378.3 kB / 377.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.1106, allocations: 119.2 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.1109, allocations: 147.5 kB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002948/0.1112, allocations: 147.3 kB / 377.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.537e-05/0.1113, allocations: 28 kB / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.29e-05/0.1114, allocations: 32 kB / 377.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.451e-05/0.1115, allocations: 71.81 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002346/0.1117, allocations: 171.2 kB / 378.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004967/0.1122, allocations: 362.7 kB / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1122, allocations: 0 / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1122, allocations: 0 / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.1123, allocations: 0 / 378.4 MB, free: 12.02 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001219/0.1135, allocations: 0.6095 MB / 379 MB, free: 11.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1135, allocations: 8.031 kB / 379.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.1137, allocations: 44.5 kB / 379.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004113/0.1141, allocations: 256.5 kB / 379.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-05/0.1142, allocations: 76.62 kB / 379.4 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.132e-05/0.1142, allocations: 32.31 kB / 379.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004995/0.1147, allocations: 305.8 kB / 379.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.1147, allocations: 4 kB / 379.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.1148, allocations: 8 kB / 379.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.1148, allocations: 8 kB / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.1151, allocations: 190.1 kB / 380 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.1168, allocations: 1.123 MB / 381.1 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002983/0.1171, allocations: 158.5 kB / 381.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.1172, allocations: 80.83 kB / 381.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.1172, allocations: 4 kB / 381.3 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002482/0.1175, allocations: 157.8 kB / 381.5 MB, free: 8.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.1175, allocations: 0 / 381.5 MB, free: 8.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001007/0.1185, allocations: 379.2 kB / 381.8 MB, free: 8.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.95e-05/0.1186, allocations: 110.8 kB / 381.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002127/0.1188, allocations: 228.9 kB / 382.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.1189, allocations: 33.7 kB / 382.2 MB, free: 7.949 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.119, allocations: 176.1 kB / 382.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.079e-05/0.119, allocations: 75.03 kB / 382.4 MB, free: 7.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.71e-05/0.1191, allocations: 57.56 kB / 382.5 MB, free: 7.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1193, allocations: 338.8 kB / 382.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.1194, allocations: 71.97 kB / 382.9 MB, free: 7.223 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.1196, allocations: 144.6 kB / 383 MB, free: 7.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/0.1198, allocations: 188.6 kB / 383.2 MB, free: 6.844 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1198, allocations: 0 / 383.2 MB, free: 6.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003978/0.1202, allocations: 275.8 kB / 383.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.1203, allocations: 9.094 kB / 383.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.1203, allocations: 0 / 383.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002598/0.1206, allocations: 52.81 kB / 383.6 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/0.1208, allocations: 60 kB / 383.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.1222, allocations: 1.56 MB / 385.2 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.1224, allocations: 39.67 kB / 385.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.1225, allocations: 8 kB / 385.2 MB, free: 4.695 MB / 318.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.0001493/0.1226, allocations: 153.7 kB / 385.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.213e-05/0.1227, allocations: 27.81 kB / 385.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.148e-05/0.1227, allocations: 26.17 kB / 385.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1227, allocations: 0 / 385.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.1227, allocations: 0 / 385.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.1227, allocations: 4 kB / 385.4 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.123, allocations: 337.2 kB / 385.8 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1231, allocations: 0 / 385.8 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.1232, allocations: 31.98 kB / 385.8 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000173/0.1234, allocations: 56.75 kB / 385.9 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.1234, allocations: 4 kB / 385.9 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.1246, allocations: 1.426 MB / 387.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1246, allocations: 0 / 387.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005981/0.1252, allocations: 330.2 kB / 387.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.1253, allocations: 116.8 kB / 387.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.1254, allocations: 8 kB / 387.7 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.1255, allocations: 11.98 kB / 387.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.1256, allocations: 31.95 kB / 387.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.1256, allocations: 4 kB / 387.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001345/0.1258, allocations: 172.5 kB / 387.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1258, allocations: 0 / 387.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003449/0.1261, allocations: 87.69 kB / 388 MB, free: 1.656 MB / 318.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.0001262/0.1263, allocations: 103.2 kB / 388.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000545/0.1268, allocations: 290.5 kB / 388.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1268, allocations: 4.438 kB / 388.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002542/0.1271, allocations: 194.6 kB / 388.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.1274, allocations: 40.41 kB / 388.6 MB, free: 1.004 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.129, allocations: 0.6513 MB / 389.3 MB, free: 332 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.1294, allocations: 0.7558 MB / 390.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.519e-05/0.1295, allocations: 22.3 kB / 390.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.1295, allocations: 19.44 kB / 390.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1296, allocations: 0 / 390.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of Templates: time 0.007566/0.1371, allocations: 3.167 MB / 393.3 MB, free: 12.33 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)