Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.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.0077/0.0077, allocations: 100.2 kB / 15.73 MB, free: 6.004 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.001429/0.001429, allocations: 192.9 kB / 16.67 MB, free: 5.926 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.628/1.628, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001977/0.001978, allocations: 51.83 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1111, allocations: 46.62 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.0037/0.1149, allocations: 2.808 MB / 376 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.116, allocations: 0.7795 MB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.1162, allocations: 8 kB / 376.8 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.1163, allocations: 47.5 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.1165, allocations: 91.17 kB / 376.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002867/0.1168, allocations: 99.77 kB / 377 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003314/0.1171, allocations: 378.3 kB / 377.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002072/0.1173, allocations: 127.2 kB / 377.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.1175, allocations: 139.5 kB / 377.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.1176, allocations: 147.4 kB / 377.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.479e-05/0.1177, allocations: 31.94 kB / 377.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.317e-05/0.1177, allocations: 36 kB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.595e-05/0.1178, allocations: 71.8 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.118, allocations: 163.2 kB / 378.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003202/0.1183, allocations: 362.7 kB / 378.4 MB, free: 12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1183, allocations: 3.938 kB / 378.4 MB, free: 12 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.1183, allocations: 4 kB / 378.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1183, allocations: 0 / 378.4 MB, free: 11.99 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.0009653/0.1193, allocations: 0.6095 MB / 379.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1193, allocations: 8.031 kB / 379.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.564e-05/0.1194, allocations: 40.56 kB / 379.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/0.1198, allocations: 256.5 kB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.398e-05/0.1199, allocations: 76.62 kB / 379.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.12, allocations: 28.38 kB / 379.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.1205, allocations: 301.9 kB / 379.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.1205, allocations: 0 / 379.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.1205, allocations: 16 kB / 379.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.1206, allocations: 8 kB / 379.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003335/0.1209, allocations: 190.1 kB / 380 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.1225, allocations: 1.123 MB / 381.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003002/0.1228, allocations: 154.5 kB / 381.2 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.123, allocations: 80.83 kB / 381.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.123, allocations: 4 kB / 381.3 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.1232, allocations: 165.8 kB / 381.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.1232, allocations: 0 / 381.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001006/0.1243, allocations: 379.2 kB / 381.8 MB, free: 8.332 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.1243, allocations: 106.8 kB / 382 MB, free: 8.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.1245, allocations: 228.9 kB / 382.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.1246, allocations: 29.7 kB / 382.2 MB, free: 7.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.1247, allocations: 184.1 kB / 382.4 MB, free: 7.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.075e-05/0.1248, allocations: 63.09 kB / 382.4 MB, free: 7.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.903e-05/0.1248, allocations: 65.5 kB / 382.5 MB, free: 7.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.125, allocations: 342.8 kB / 382.8 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.1251, allocations: 71.97 kB / 382.9 MB, free: 7.199 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.1253, allocations: 140.6 kB / 383.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002598/0.1255, allocations: 188.6 kB / 383.2 MB, free: 6.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1256, allocations: 7.938 kB / 383.2 MB, free: 6.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004116/0.126, allocations: 267.8 kB / 383.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.126, allocations: 4 kB / 383.5 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.126, allocations: 4 kB / 383.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002644/0.1263, allocations: 52.81 kB / 383.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.1265, allocations: 56.09 kB / 383.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.1278, allocations: 1.568 MB / 385.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.1281, allocations: 43.61 kB / 385.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.1281, allocations: 12 kB / 385.2 MB, free: 4.664 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.0001458/0.1282, allocations: 149.8 kB / 385.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.301e-05/0.1283, allocations: 27.66 kB / 385.4 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.768e-05/0.1283, allocations: 34.17 kB / 385.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1284, allocations: 0 / 385.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.1284, allocations: 0 / 385.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1284, allocations: 0 / 385.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003025/0.1287, allocations: 329.2 kB / 385.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1287, allocations: 0 / 385.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.1288, allocations: 31.98 kB / 385.8 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001717/0.129, allocations: 56.81 kB / 385.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.129, allocations: 4 kB / 385.9 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.1302, allocations: 1.422 MB / 387.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1302, allocations: 4.031 kB / 387.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005942/0.1308, allocations: 334.2 kB / 387.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.1309, allocations: 112.8 kB / 387.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.1309, allocations: 4 kB / 387.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.1311, allocations: 19.98 kB / 387.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.072e-05/0.1312, allocations: 27.95 kB / 387.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.1312, allocations: 12.06 kB / 387.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000154/0.1314, allocations: 164.5 kB / 387.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1314, allocations: 3.938 kB / 387.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003471/0.1317, allocations: 79.69 kB / 388 MB, free: 1.637 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.0001439/0.1319, allocations: 111.2 kB / 388.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005625/0.1325, allocations: 290.8 kB / 388.4 MB, free: 1.223 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1325, allocations: 4.125 kB / 388.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002702/0.1328, allocations: 198.6 kB / 388.6 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.133, allocations: 28.42 kB / 388.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.1346, allocations: 0.6512 MB / 389.3 MB, free: 312 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.1349, allocations: 0.7597 MB / 390.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.289e-05/0.135, allocations: 22.3 kB / 390.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.915e-05/0.135, allocations: 23.44 kB / 390.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.135, allocations: 0 / 390.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of Templates: time 0.006482/0.1415, allocations: 3.085 MB / 393.2 MB, free: 12.39 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)