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.001665/0.001665, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.00207/0.00207, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.548/1.548, allocations: 205.1 MB / 223.7 MB, free: 12.34 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.001189/0.001189, allocations: 51.94 kB / 280 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1049, allocations: 46.62 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003999/0.1089, allocations: 2.835 MB / 329.5 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.1103, allocations: 0.7759 MB / 330.2 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.1104, allocations: 4 kB / 330.2 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.1106, allocations: 55.5 kB / 330.3 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.1108, allocations: 87.19 kB / 330.4 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000339/0.1111, allocations: 99.75 kB / 330.5 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003633/0.1115, allocations: 370.4 kB / 330.8 MB, free: 228 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.1117, allocations: 115.3 kB / 330.9 MB, free: 116 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.1119, allocations: 135.6 kB / 331.1 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001902/0.1121, allocations: 155.3 kB / 331.2 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.905e-05/0.1121, allocations: 32 kB / 331.3 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.917e-05/0.1122, allocations: 28 kB / 331.3 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.875e-05/0.1123, allocations: 75.7 kB / 331.4 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.1124, allocations: 163.2 kB / 331.5 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003268/0.1128, allocations: 367 kB / 331.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1128, allocations: 0 / 331.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1128, allocations: 0 / 331.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1128, allocations: 0 / 331.9 MB, free: 15.18 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.0009471/0.1137, allocations: 0.5979 MB / 332.5 MB, free: 14.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1138, allocations: 16.03 kB / 332.5 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.653e-05/0.1139, allocations: 36.55 kB / 332.5 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.1142, allocations: 272.3 kB / 332.8 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.305e-05/0.1143, allocations: 80.61 kB / 332.9 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.1144, allocations: 24.38 kB / 332.9 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005599/0.115, allocations: 301.9 kB / 333.2 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.115, allocations: 0 / 333.2 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.115, allocations: 16 kB / 333.2 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.115, allocations: 8 kB / 333.2 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003256/0.1154, allocations: 190.1 kB / 333.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.1169, allocations: 1.131 MB / 334.5 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.1173, allocations: 158.5 kB / 334.7 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.1175, allocations: 80.83 kB / 334.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.1175, allocations: 4 kB / 334.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004282/0.1179, allocations: 153.8 kB / 334.9 MB, free: 11.9 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.1179, allocations: 0 / 334.9 MB, free: 11.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001174/0.1191, allocations: 379.2 kB / 335.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.57e-05/0.1192, allocations: 110.8 kB / 335.4 MB, free: 11.37 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002539/0.1195, allocations: 225 kB / 335.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.1195, allocations: 29.7 kB / 335.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.1197, allocations: 184.1 kB / 335.8 MB, free: 10.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.192e-05/0.1198, allocations: 74.98 kB / 335.9 MB, free: 10.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.1199, allocations: 57.7 kB / 336 MB, free: 10.78 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.1201, allocations: 334.8 kB / 336.3 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.1202, allocations: 67.97 kB / 336.3 MB, free: 10.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.1204, allocations: 148.6 kB / 336.5 MB, free: 10.2 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002777/0.1207, allocations: 192.2 kB / 336.7 MB, free: 9.992 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.1207, allocations: 0 / 336.7 MB, free: 9.992 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004459/0.1212, allocations: 267.7 kB / 336.9 MB, free: 9.723 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.1212, allocations: 4 kB / 336.9 MB, free: 9.719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1212, allocations: 4 kB / 337 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003266/0.1215, allocations: 56.97 kB / 337 MB, free: 9.656 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.1218, allocations: 55.91 kB / 337.1 MB, free: 9.602 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.1233, allocations: 1.572 MB / 338.6 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/0.1235, allocations: 43.8 kB / 338.7 MB, free: 7.852 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.1236, allocations: 8 kB / 338.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.1237, allocations: 145.7 kB / 338.8 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.4e-05/0.1237, allocations: 19.81 kB / 338.8 MB, free: 7.672 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.872e-05/0.1238, allocations: 34.17 kB / 338.9 MB, free: 7.641 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1238, allocations: 0 / 338.9 MB, free: 7.641 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.1238, allocations: 4 kB / 338.9 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.1238, allocations: 3.984 kB / 338.9 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003145/0.1242, allocations: 321.3 kB / 339.2 MB, free: 7.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1242, allocations: 0 / 339.2 MB, free: 7.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.1243, allocations: 35.98 kB / 339.2 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/0.1245, allocations: 52.81 kB / 339.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.1245, allocations: 4 kB / 339.3 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.1258, allocations: 1.418 MB / 340.7 MB, free: 5.617 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1258, allocations: 4.031 kB / 340.7 MB, free: 5.613 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006208/0.1265, allocations: 330.2 kB / 341 MB, free: 5.27 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.1266, allocations: 120.7 kB / 341.2 MB, free: 5.133 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.1266, allocations: 4 kB / 341.2 MB, free: 5.129 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.1268, allocations: 15.98 kB / 341.2 MB, free: 5.113 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.737e-05/0.1269, allocations: 35.94 kB / 341.2 MB, free: 5.078 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.1269, allocations: 4 kB / 341.2 MB, free: 5.074 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001581/0.1271, allocations: 164.5 kB / 341.4 MB, free: 4.914 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1271, allocations: 64 / 341.4 MB, free: 4.914 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.1274, allocations: 79.84 kB / 341.4 MB, free: 4.836 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.0001873/0.1276, allocations: 107.2 kB / 341.6 MB, free: 4.723 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005712/0.1282, allocations: 294.5 kB / 341.8 MB, free: 4.422 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1282, allocations: 4 kB / 341.8 MB, free: 4.418 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.1285, allocations: 198.9 kB / 342 MB, free: 4.211 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.1288, allocations: 40.42 kB / 342.1 MB, free: 4.172 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.1304, allocations: 0.6591 MB / 342.7 MB, free: 3.484 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.1309, allocations: 0.7558 MB / 343.5 MB, free: 2.703 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.1311, allocations: 22.28 kB / 343.5 MB, free: 2.68 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.1312, allocations: 35.36 kB / 343.6 MB, free: 2.645 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1312, allocations: 4 kB / 343.6 MB, free: 2.641 MB / 286.1 MB Notification: Performance of Templates: time 0.007141/0.1383, allocations: 3.056 MB / 346.6 MB, free: 15.59 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)