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.00146/0.001467, allocations: 113.4 kB / 17.06 MB, free: 6.012 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.001653/0.001653, allocations: 191 kB / 18 MB, free: 5.098 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.449/1.449, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001156/0.001156, allocations: 47.92 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1202, allocations: 46.61 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005144/0.1254, allocations: 3.088 MB / 377.6 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.1272, allocations: 0.799 MB / 378.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001769/0.1274, allocations: 12 kB / 378.4 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.1276, allocations: 59.42 kB / 378.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.1279, allocations: 99.05 kB / 378.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004117/0.1283, allocations: 111.7 kB / 378.7 MB, free: 396 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2777/0.406, allocations: 415.5 kB / 379.1 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005067/0.4065, allocations: 142 kB / 379.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005445/0.4071, allocations: 155.5 kB / 379.3 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004481/0.4075, allocations: 179.3 kB / 379.5 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.4077, allocations: 34.38 kB / 379.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.4078, allocations: 35.28 kB / 379.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-05/0.4079, allocations: 79.97 kB / 379.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003284/0.4082, allocations: 186.3 kB / 379.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008636/0.4091, allocations: 425.4 kB / 380.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.4091, allocations: 1.375 kB / 380.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.576e-06/0.4091, allocations: 3.562 kB / 380.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.795e-05/0.4092, allocations: 3.938 kB / 380.3 MB, free: 9.605 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.001509/0.4107, allocations: 0.6499 MB / 380.9 MB, free: 9.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.4108, allocations: 11.16 kB / 380.9 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.4109, allocations: 46.22 kB / 381 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005502/0.4115, allocations: 276.3 kB / 381.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.593e-05/0.4116, allocations: 81.02 kB / 381.3 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.672e-05/0.4117, allocations: 31.23 kB / 381.4 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009036/0.4126, allocations: 347.3 kB / 381.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.4126, allocations: 2 kB / 381.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.781e-05/0.4127, allocations: 13.52 kB / 381.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.759e-05/0.4127, allocations: 7.844 kB / 381.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006531/0.4134, allocations: 220.8 kB / 381.9 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002429/0.4158, allocations: 1.362 MB / 383.3 MB, free: 7.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003786/0.4162, allocations: 169.9 kB / 383.5 MB, free: 7.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.4164, allocations: 91.61 kB / 383.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.4164, allocations: 10.67 kB / 383.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003254/0.4168, allocations: 152 kB / 383.7 MB, free: 7.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.104e-06/0.4168, allocations: 0 / 383.7 MB, free: 7.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0013/0.4181, allocations: 403.9 kB / 384.1 MB, free: 7.684 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.4182, allocations: 110.1 kB / 384.2 MB, free: 7.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/0.4185, allocations: 260.7 kB / 384.5 MB, free: 7.449 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.4186, allocations: 34.31 kB / 384.5 MB, free: 7.418 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.4187, allocations: 215 kB / 384.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.2e-05/0.4188, allocations: 68.73 kB / 384.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.4189, allocations: 63.33 kB / 384.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.799e-05/0.419, allocations: 341.5 kB / 385.2 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.4192, allocations: 75.31 kB / 385.2 MB, free: 6.871 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.4194, allocations: 179.9 kB / 385.4 MB, free: 6.723 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.4198, allocations: 233.2 kB / 385.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.455e-06/0.4198, allocations: 6.734 kB / 385.7 MB, free: 6.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008068/0.4207, allocations: 347.2 kB / 386 MB, free: 6.414 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.4207, allocations: 9.406 kB / 386 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.4207, allocations: 4.266 kB / 386 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003289/0.4211, allocations: 52.05 kB / 386.1 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.4214, allocations: 64.41 kB / 386.1 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.4226, allocations: 1.572 MB / 387.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003089/0.4229, allocations: 45.84 kB / 387.7 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.4229, allocations: 11.66 kB / 387.8 MB, free: 4.809 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.0001793/0.4231, allocations: 155.8 kB / 387.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.465e-05/0.4232, allocations: 33.75 kB / 387.9 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.92e-05/0.4233, allocations: 35.67 kB / 388 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.4233, allocations: 5.625 kB / 388 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4233, allocations: 1.094 kB / 388 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4233, allocations: 5.578 kB / 388 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004379/0.4237, allocations: 335.9 kB / 388.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-06/0.4238, allocations: 0.7969 kB / 388.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.424, allocations: 42.05 kB / 388.4 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001977/0.4242, allocations: 51.08 kB / 388.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.4242, allocations: 11.89 kB / 388.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009943/0.4252, allocations: 1.417 MB / 389.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4252, allocations: 1.219 kB / 389.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007417/0.426, allocations: 351.1 kB / 390.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.4261, allocations: 117.5 kB / 390.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/0.4262, allocations: 9.562 kB / 390.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.4264, allocations: 19.16 kB / 390.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.4265, allocations: 31.22 kB / 390.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.4265, allocations: 5.203 kB / 390.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.4267, allocations: 190.3 kB / 390.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4267, allocations: 0 / 390.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004924/0.4272, allocations: 88.62 kB / 390.6 MB, free: 2.477 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.0001728/0.4274, allocations: 111.4 kB / 390.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007665/0.4282, allocations: 311.9 kB / 391 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.4282, allocations: 1.375 kB / 391 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003251/0.4285, allocations: 205.7 kB / 391.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.4289, allocations: 33.02 kB / 391.3 MB, free: 2.055 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.4306, allocations: 0.681 MB / 392 MB, free: 1.66 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.4309, allocations: 0.7725 MB / 392.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.4311, allocations: 28.81 kB / 392.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.702e-05/0.4312, allocations: 22.66 kB / 392.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4312, allocations: 4 kB / 392.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of Templates: time 0.01048/0.4416, allocations: 3.143 MB / 395.9 MB, free: 0.7109 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)