Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001394/0.001399, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.522/1.522, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.002322/0.002322, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3607, allocations: 46.63 MB / 325.3 MB, free: 1.832 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006278/0.367, allocations: 3.098 MB / 328.4 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.3691, allocations: 0.7863 MB / 329.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000227/0.3694, allocations: 6.094 kB / 329.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.3696, allocations: 62.05 kB / 329.3 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002401/0.3699, allocations: 102.3 kB / 329.4 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004791/0.3704, allocations: 105.4 kB / 329.5 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006176/0.371, allocations: 419.9 kB / 329.9 MB, free: 14.24 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003474/0.3713, allocations: 137.2 kB / 330 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002599/0.3716, allocations: 163 kB / 330.2 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002509/0.3719, allocations: 168.4 kB / 330.3 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.946e-05/0.372, allocations: 40 kB / 330.4 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.9e-05/0.372, allocations: 33.66 kB / 330.4 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.3722, allocations: 78.66 kB / 330.5 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002439/0.3724, allocations: 191.9 kB / 330.7 MB, free: 13.75 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005278/0.3729, allocations: 416.3 kB / 331.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.373, allocations: 4 kB / 331.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.373, allocations: 0 / 331.1 MB, free: 13.45 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.373, allocations: 1.25 kB / 331.1 MB, free: 13.45 MB / 270.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.001469/0.3745, allocations: 0.6391 MB / 331.7 MB, free: 12.89 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/0.3745, allocations: 13.28 kB / 331.7 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.3747, allocations: 48.56 kB / 331.8 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004716/0.3752, allocations: 277.8 kB / 332 MB, free: 12.58 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.3753, allocations: 79.03 kB / 332.1 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.74e-05/0.3754, allocations: 33.25 kB / 332.2 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.3762, allocations: 343.7 kB / 332.5 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.3762, allocations: 0 / 332.5 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.3763, allocations: 15.34 kB / 332.5 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.3763, allocations: 8.344 kB / 332.5 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004982/0.3768, allocations: 222.3 kB / 332.7 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.379, allocations: 1.369 MB / 334.1 MB, free: 10.9 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003798/0.3794, allocations: 158.6 kB / 334.3 MB, free: 10.73 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.3796, allocations: 96.73 kB / 334.4 MB, free: 10.64 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.3796, allocations: 0 / 334.4 MB, free: 10.64 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004301/0.3801, allocations: 161.8 kB / 334.5 MB, free: 10.46 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.3801, allocations: 0 / 334.5 MB, free: 10.46 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.00122/0.3813, allocations: 403.1 kB / 334.9 MB, free: 10.04 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.3814, allocations: 106.8 kB / 335 MB, free: 9.906 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.3817, allocations: 266.6 kB / 335.3 MB, free: 9.633 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.3818, allocations: 29.7 kB / 335.3 MB, free: 9.598 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.3819, allocations: 207.8 kB / 335.5 MB, free: 9.391 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.223e-05/0.382, allocations: 74.98 kB / 335.6 MB, free: 9.316 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.3821, allocations: 58.03 kB / 335.6 MB, free: 9.254 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.3823, allocations: 342.8 kB / 336 MB, free: 8.91 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.3825, allocations: 76.61 kB / 336 MB, free: 8.836 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.3827, allocations: 177.5 kB / 336.2 MB, free: 8.621 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003694/0.3831, allocations: 239.5 kB / 336.4 MB, free: 8.352 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3831, allocations: 0 / 336.4 MB, free: 8.352 MB / 270.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007537/0.3839, allocations: 347.5 kB / 336.8 MB, free: 8.004 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.3839, allocations: 7.984 kB / 336.8 MB, free: 7.996 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3839, allocations: 7.984 kB / 336.8 MB, free: 7.988 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002918/0.3842, allocations: 61.06 kB / 336.9 MB, free: 7.926 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.3845, allocations: 59.91 kB / 336.9 MB, free: 7.867 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.3862, allocations: 1.568 MB / 338.5 MB, free: 6.16 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003003/0.3865, allocations: 47.8 kB / 338.5 MB, free: 6.113 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.3866, allocations: 19.94 kB / 338.6 MB, free: 6.094 MB / 270.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.0001884/0.3868, allocations: 145.8 kB / 338.7 MB, free: 5.941 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.185e-05/0.3868, allocations: 23.72 kB / 338.7 MB, free: 5.918 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.322e-05/0.3869, allocations: 38.11 kB / 338.8 MB, free: 5.887 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.3869, allocations: 0 / 338.8 MB, free: 5.887 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.3869, allocations: 0 / 338.8 MB, free: 5.887 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3869, allocations: 3.984 kB / 338.8 MB, free: 5.883 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003731/0.3873, allocations: 345.3 kB / 339.1 MB, free: 5.496 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3873, allocations: 0 / 339.1 MB, free: 5.496 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.3875, allocations: 39.91 kB / 339.1 MB, free: 5.457 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001865/0.3877, allocations: 52.77 kB / 339.2 MB, free: 5.402 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.3877, allocations: 11.98 kB / 339.2 MB, free: 5.391 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.389, allocations: 1.418 MB / 340.6 MB, free: 3.828 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.389, allocations: 0 / 340.6 MB, free: 3.828 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000691/0.3897, allocations: 350.3 kB / 341 MB, free: 3.465 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.3898, allocations: 116.7 kB / 341.1 MB, free: 3.332 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.856e-05/0.3898, allocations: 3.984 kB / 341.1 MB, free: 3.328 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.39, allocations: 19.98 kB / 341.1 MB, free: 3.309 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.405e-05/0.3901, allocations: 27.91 kB / 341.1 MB, free: 3.281 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.3901, allocations: 11.98 kB / 341.1 MB, free: 3.27 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001808/0.3903, allocations: 178 kB / 341.3 MB, free: 3.098 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3903, allocations: 4.062 kB / 341.3 MB, free: 3.094 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003899/0.3907, allocations: 87.84 kB / 341.4 MB, free: 3.008 MB / 270.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.0001672/0.3909, allocations: 119.3 kB / 341.5 MB, free: 2.883 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006628/0.3916, allocations: 318.4 kB / 341.8 MB, free: 2.559 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3916, allocations: 4.688 kB / 341.8 MB, free: 2.555 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003059/0.3919, allocations: 210.5 kB / 342 MB, free: 2.336 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.3922, allocations: 35.05 kB / 342.1 MB, free: 2.305 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.3937, allocations: 0.685 MB / 342.8 MB, free: 1.594 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.3941, allocations: 0.7714 MB / 343.5 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001148/0.3943, allocations: 30.28 kB / 343.6 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.994e-05/0.3943, allocations: 19.44 kB / 343.6 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3943, allocations: 0 / 343.6 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of Templates: time 0.008039/0.4024, allocations: 3.091 MB / 346.7 MB, free: 13.66 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)