Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.001069, allocations: 103.1 kB / 17.06 MB, free: 6.129 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.001214/0.001214, allocations: 195 kB / 18 MB, free: 5.203 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.508/1.508, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001373/0.001373, allocations: 47.94 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.12, allocations: 46.62 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005078/0.1251, allocations: 3.091 MB / 377.6 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1267, allocations: 0.7952 MB / 378.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.1268, allocations: 8 kB / 378.4 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002153/0.1271, allocations: 59.42 kB / 378.4 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.1273, allocations: 107 kB / 378.5 MB, free: 484 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004719/0.1278, allocations: 103.8 kB / 378.6 MB, free: 380 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2898/0.4176, allocations: 418.8 kB / 379.1 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004697/0.4181, allocations: 138.8 kB / 379.2 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004965/0.4186, allocations: 158.8 kB / 379.3 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002745/0.4189, allocations: 178.7 kB / 379.5 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.542e-05/0.419, allocations: 34.38 kB / 379.6 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.511e-05/0.4191, allocations: 34.75 kB / 379.6 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/0.4191, allocations: 78.45 kB / 379.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000195/0.4193, allocations: 187.2 kB / 379.8 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005795/0.4199, allocations: 428.7 kB / 380.3 MB, free: 9.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.373e-06/0.42, allocations: 3.281 kB / 380.3 MB, free: 9.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.42, allocations: 4.906 kB / 380.3 MB, free: 9.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.42, allocations: 0.7031 kB / 380.3 MB, free: 9.617 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001238/0.4212, allocations: 0.6416 MB / 380.9 MB, free: 9.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.4213, allocations: 10.58 kB / 380.9 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.4214, allocations: 41.09 kB / 381 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005087/0.4219, allocations: 275.2 kB / 381.2 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.895e-05/0.422, allocations: 79.98 kB / 381.3 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.627e-05/0.4221, allocations: 30.34 kB / 381.3 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007907/0.4229, allocations: 347.3 kB / 381.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.4229, allocations: 1.797 kB / 381.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.017e-05/0.423, allocations: 17.95 kB / 381.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.423, allocations: 8.031 kB / 381.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000533/0.4235, allocations: 216.3 kB / 381.9 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.4256, allocations: 1.359 MB / 383.3 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.426, allocations: 167.8 kB / 383.4 MB, free: 7.957 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.4262, allocations: 90.42 kB / 383.5 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.4262, allocations: 6.219 kB / 383.5 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003199/0.4265, allocations: 153.5 kB / 383.7 MB, free: 7.871 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.806e-06/0.4265, allocations: 0 / 383.7 MB, free: 7.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00118/0.4277, allocations: 402.7 kB / 384.1 MB, free: 7.719 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.4278, allocations: 111 kB / 384.2 MB, free: 7.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.4281, allocations: 263 kB / 384.4 MB, free: 7.484 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.4282, allocations: 27.31 kB / 384.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.4283, allocations: 212.5 kB / 384.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.545e-05/0.4284, allocations: 71.53 kB / 384.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.4285, allocations: 69.61 kB / 384.8 MB, free: 7.246 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.4286, allocations: 335 kB / 385.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.4288, allocations: 78.77 kB / 385.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.4291, allocations: 181.9 kB / 385.4 MB, free: 6.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003499/0.4294, allocations: 237.1 kB / 385.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4294, allocations: 5.281 kB / 385.6 MB, free: 6.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006863/0.4301, allocations: 334.9 kB / 386 MB, free: 6.461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.4302, allocations: 6.75 kB / 386 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.4302, allocations: 10.98 kB / 386 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000355/0.4305, allocations: 54.81 kB / 386 MB, free: 6.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/0.4309, allocations: 65.94 kB / 386.1 MB, free: 6.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/0.4321, allocations: 1.57 MB / 387.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.4324, allocations: 45.38 kB / 387.7 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/0.4325, allocations: 15.31 kB / 387.7 MB, free: 4.848 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001508/0.4326, allocations: 153.8 kB / 387.9 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.4327, allocations: 24.52 kB / 387.9 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.192e-05/0.4327, allocations: 36.44 kB / 387.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.4328, allocations: 6.156 kB / 387.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.4328, allocations: 1.031 kB / 387.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.4328, allocations: 1.25 kB / 387.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003937/0.4332, allocations: 337.6 kB / 388.3 MB, free: 4.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.4332, allocations: 3.938 kB / 388.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002065/0.4334, allocations: 35.45 kB / 388.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002065/0.4336, allocations: 58.34 kB / 388.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.4336, allocations: 7.016 kB / 388.4 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.4347, allocations: 1.421 MB / 389.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4347, allocations: 0 / 389.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007952/0.4355, allocations: 351.9 kB / 390.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.4356, allocations: 118.3 kB / 390.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.4356, allocations: 5.156 kB / 390.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.4358, allocations: 15.61 kB / 390.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.436, allocations: 39.27 kB / 390.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.436, allocations: 5.219 kB / 390.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001944/0.4362, allocations: 185.5 kB / 390.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4362, allocations: 1.25 kB / 390.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004408/0.4366, allocations: 87.91 kB / 390.6 MB, free: 2.527 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000155/0.4368, allocations: 111.8 kB / 390.7 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007063/0.4375, allocations: 312.5 kB / 391 MB, free: 2.262 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4375, allocations: 4.125 kB / 391 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003125/0.4378, allocations: 205.1 kB / 391.2 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.4381, allocations: 28.92 kB / 391.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00161/0.4398, allocations: 0.6738 MB / 391.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.44, allocations: 0.7693 MB / 392.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.4402, allocations: 30.03 kB / 392.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.811e-05/0.4402, allocations: 22.25 kB / 392.7 MB, free: 1 MB / 318.1 MB Notification: Performance of SimCode: time 1.443e-06/0.4402, allocations: 0 / 392.7 MB, free: 1 MB / 318.1 MB Notification: Performance of Templates: time 0.009729/0.45, allocations: 3.226 MB / 396 MB, free: 0.75 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)