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.001158/0.001158, allocations: 104.3 kB / 16.62 MB, free: 6.812 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.001189/0.001189, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.511/1.511, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.00117/0.00117, allocations: 47.94 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1029, allocations: 46.63 MB / 326.1 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003796/0.1067, allocations: 2.873 MB / 329 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.108, allocations: 0.7565 MB / 329.8 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.1082, allocations: 4 kB / 329.8 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001859/0.1084, allocations: 43.69 kB / 329.8 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.1086, allocations: 75.38 kB / 329.9 MB, free: 1 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003062/0.1089, allocations: 87.86 kB / 330 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003657/0.1092, allocations: 374.4 kB / 330.3 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.1095, allocations: 115.3 kB / 330.5 MB, free: 448 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.1096, allocations: 135.6 kB / 330.6 MB, free: 312 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.1098, allocations: 159.3 kB / 330.7 MB, free: 152 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.863e-05/0.1099, allocations: 32 kB / 330.8 MB, free: 120 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.678e-05/0.1099, allocations: 28 kB / 330.8 MB, free: 92 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.821e-05/0.11, allocations: 75.7 kB / 330.9 MB, free: 16 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.1102, allocations: 155.3 kB / 331 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003117/0.1105, allocations: 366.9 kB / 331.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1105, allocations: 0 / 331.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1105, allocations: 0 / 331.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.1105, allocations: 4 kB / 331.4 MB, free: 15.5 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.000938/0.1115, allocations: 0.594 MB / 332 MB, free: 14.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1115, allocations: 12.03 kB / 332 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.479e-05/0.1116, allocations: 32.56 kB / 332 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.1119, allocations: 276.3 kB / 332.3 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.319e-05/0.112, allocations: 80.62 kB / 332.4 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.1121, allocations: 24.38 kB / 332.4 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000488/0.1126, allocations: 301.9 kB / 332.7 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.1126, allocations: 0 / 332.7 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.1126, allocations: 8 kB / 332.7 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1126, allocations: 11.94 kB / 332.7 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.113, allocations: 198.1 kB / 332.9 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.1146, allocations: 1.135 MB / 334 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.1149, allocations: 154.5 kB / 334.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.115, allocations: 80.83 kB / 334.3 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.1151, allocations: 8 kB / 334.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003237/0.1154, allocations: 157.8 kB / 334.4 MB, free: 12.22 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.1154, allocations: 0 / 334.4 MB, free: 12.22 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009976/0.1164, allocations: 383.2 kB / 334.8 MB, free: 11.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.1165, allocations: 102.8 kB / 334.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.1167, allocations: 225 kB / 335.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.1167, allocations: 33.7 kB / 335.2 MB, free: 11.42 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.1169, allocations: 176.2 kB / 335.3 MB, free: 11.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.627e-05/0.1169, allocations: 74.98 kB / 335.4 MB, free: 11.17 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.6e-05/0.117, allocations: 57.7 kB / 335.5 MB, free: 11.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1172, allocations: 338.8 kB / 335.8 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.1173, allocations: 67.97 kB / 335.9 MB, free: 10.7 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.1175, allocations: 140.6 kB / 336 MB, free: 10.54 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.1177, allocations: 196.2 kB / 336.2 MB, free: 10.32 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1177, allocations: 4 kB / 336.2 MB, free: 10.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004125/0.1181, allocations: 267.7 kB / 336.5 MB, free: 10.05 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1182, allocations: 8 kB / 336.5 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1182, allocations: 0 / 336.5 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002749/0.1185, allocations: 60.97 kB / 336.5 MB, free: 9.977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.1187, allocations: 55.91 kB / 336.6 MB, free: 9.922 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.12, allocations: 1.568 MB / 338.1 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.1202, allocations: 39.77 kB / 338.2 MB, free: 8.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.1203, allocations: 16 kB / 338.2 MB, free: 8.164 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.0001487/0.1204, allocations: 145.7 kB / 338.3 MB, free: 8.012 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.203e-05/0.1205, allocations: 15.81 kB / 338.4 MB, free: 7.996 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.943e-05/0.1205, allocations: 34.17 kB / 338.4 MB, free: 7.965 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1205, allocations: 0 / 338.4 MB, free: 7.965 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.1205, allocations: 0 / 338.4 MB, free: 7.965 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1205, allocations: 0 / 338.4 MB, free: 7.965 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003063/0.1209, allocations: 325.2 kB / 338.7 MB, free: 7.598 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1209, allocations: 8 kB / 338.7 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.121, allocations: 27.98 kB / 338.7 MB, free: 7.562 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001761/0.1212, allocations: 52.81 kB / 338.8 MB, free: 7.508 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.1213, allocations: 0 / 338.8 MB, free: 7.508 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.1224, allocations: 1.433 MB / 340.2 MB, free: 5.934 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1224, allocations: 0 / 340.2 MB, free: 5.934 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005927/0.123, allocations: 334.1 kB / 340.6 MB, free: 5.586 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.328e-05/0.1231, allocations: 112.7 kB / 340.7 MB, free: 5.457 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.547e-05/0.1232, allocations: 12.11 kB / 340.7 MB, free: 5.445 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.1234, allocations: 19.98 kB / 340.7 MB, free: 5.426 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.052e-05/0.1235, allocations: 27.95 kB / 340.7 MB, free: 5.398 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.1235, allocations: 4 kB / 340.7 MB, free: 5.395 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001292/0.1236, allocations: 160.5 kB / 340.9 MB, free: 5.238 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1236, allocations: 0 / 340.9 MB, free: 5.238 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000342/0.124, allocations: 79.84 kB / 341 MB, free: 5.16 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.0001295/0.1241, allocations: 111.2 kB / 341.1 MB, free: 5.043 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005463/0.1247, allocations: 298.7 kB / 341.4 MB, free: 4.738 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1247, allocations: 0 / 341.4 MB, free: 4.738 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002578/0.125, allocations: 190.5 kB / 341.5 MB, free: 4.539 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.1253, allocations: 36.86 kB / 341.6 MB, free: 4.504 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.1269, allocations: 0.7607 MB / 342.3 MB, free: 3.715 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.1273, allocations: 0.7635 MB / 343.1 MB, free: 2.926 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.1274, allocations: 22.3 kB / 343.1 MB, free: 2.902 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.123e-05/0.1274, allocations: 19.44 kB / 343.1 MB, free: 2.883 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1274, allocations: 3.938 kB / 343.1 MB, free: 2.879 MB / 286.1 MB Notification: Performance of Templates: time 0.006648/0.1341, allocations: 2.967 MB / 346.1 MB, free: 15.92 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)