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.009047/0.009046, allocations: 101.9 kB / 15.73 MB, free: 6.062 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.001493/0.001493, allocations: 192 kB / 16.67 MB, free: 5.973 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.644/1.644, 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.00118/0.00118, allocations: 53.84 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09642/0.09761, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003865/0.1015, allocations: 2.82 MB / 376 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1028, allocations: 0.7756 MB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.1029, allocations: 4 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.1031, allocations: 51.5 kB / 376.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.1033, allocations: 91.19 kB / 376.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.1036, allocations: 99.77 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003614/0.1039, allocations: 378.2 kB / 377.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002178/0.1042, allocations: 111.2 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.1043, allocations: 147.5 kB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.1045, allocations: 155.3 kB / 377.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.228e-05/0.1046, allocations: 32 kB / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.259e-05/0.1046, allocations: 28 kB / 377.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.466e-05/0.1047, allocations: 63.83 kB / 377.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1049, allocations: 171.2 kB / 378.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003917/0.1053, allocations: 366.5 kB / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1053, allocations: 0 / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1053, allocations: 0 / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1053, allocations: 3.938 kB / 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.001/0.1063, allocations: 0.6131 MB / 379.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.1064, allocations: 8.031 kB / 379.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.17e-05/0.1065, allocations: 40.73 kB / 379.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.1069, allocations: 272.4 kB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.637e-05/0.1069, allocations: 76.62 kB / 379.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/0.107, allocations: 28.36 kB / 379.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.1075, allocations: 305.8 kB / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1075, allocations: 0 / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.1076, allocations: 8 kB / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1076, allocations: 8 kB / 379.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003345/0.1079, allocations: 194.1 kB / 380 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.1095, allocations: 1.12 MB / 381.1 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.1098, allocations: 158.5 kB / 381.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.11, allocations: 76.88 kB / 381.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.11, allocations: 8 kB / 381.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002464/0.1103, allocations: 149.8 kB / 381.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.283e-06/0.1103, allocations: 0 / 381.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001001/0.1113, allocations: 391.6 kB / 381.9 MB, free: 8.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/0.1114, allocations: 106.8 kB / 382 MB, free: 8.211 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.1116, allocations: 232.9 kB / 382.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.1116, allocations: 29.7 kB / 382.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.1118, allocations: 184.5 kB / 382.4 MB, free: 7.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.176e-05/0.1118, allocations: 71.44 kB / 382.5 MB, free: 7.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.772e-05/0.1119, allocations: 69.5 kB / 382.5 MB, free: 7.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1121, allocations: 338.8 kB / 382.9 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1122, allocations: 63.98 kB / 382.9 MB, free: 7.203 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.1124, allocations: 140.6 kB / 383.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.1126, allocations: 192.2 kB / 383.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1126, allocations: 4 kB / 383.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000411/0.113, allocations: 271.8 kB / 383.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1131, allocations: 8 kB / 383.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.1131, allocations: 0 / 383.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002521/0.1133, allocations: 61.03 kB / 383.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.1135, allocations: 51.92 kB / 383.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/0.1148, allocations: 1.564 MB / 385.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.1151, allocations: 43.83 kB / 385.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.1151, allocations: 16.08 kB / 385.3 MB, free: 4.66 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.0001553/0.1153, allocations: 153.6 kB / 385.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.625e-05/0.1153, allocations: 27.86 kB / 385.4 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.899e-05/0.1154, allocations: 26.17 kB / 385.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1154, allocations: 3.938 kB / 385.5 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1154, allocations: 0 / 385.5 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1154, allocations: 4 kB / 385.5 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003348/0.1157, allocations: 321.4 kB / 385.8 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1157, allocations: 7.938 kB / 385.8 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.1159, allocations: 31.98 kB / 385.8 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001728/0.1161, allocations: 48.81 kB / 385.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.1161, allocations: 7.984 kB / 385.9 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.1174, allocations: 1.418 MB / 387.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1174, allocations: 4.062 kB / 387.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005836/0.118, allocations: 330.2 kB / 387.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.9e-05/0.1181, allocations: 120.8 kB / 387.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.1181, allocations: 4 kB / 387.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.1183, allocations: 20.05 kB / 387.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.564e-05/0.1184, allocations: 27.95 kB / 387.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.1184, allocations: 11.94 kB / 387.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001294/0.1185, allocations: 164.5 kB / 388 MB, free: 1.715 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1185, allocations: 0 / 388 MB, free: 1.715 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.1189, allocations: 83.84 kB / 388.1 MB, free: 1.633 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.0001111/0.119, allocations: 107.2 kB / 388.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004994/0.1195, allocations: 290.4 kB / 388.4 MB, free: 1.223 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1195, allocations: 4 kB / 388.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002484/0.1198, allocations: 190.6 kB / 388.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.1201, allocations: 40.84 kB / 388.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/0.1217, allocations: 0.6544 MB / 389.3 MB, free: 304 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.122, allocations: 0.7597 MB / 390.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.982e-05/0.1221, allocations: 30.2 kB / 390.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.726e-05/0.1222, allocations: 23.44 kB / 390.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1222, allocations: 0 / 390.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of Templates: time 0.006323/0.1285, allocations: 3.081 MB / 393.2 MB, free: 12.38 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)