Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007934/0.007934, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.297/1.297, allocations: 170.8 MB / 186.6 MB, free: 1.031 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001609/0.001609, allocations: 111.3 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003615, allocations: 8 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2185, allocations: 38.76 MB / 312.9 MB, free: 38.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08619/0.3047, allocations: 69.45 MB / 382.3 MB, free: 5.07 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001846/0.3049, allocations: 71.95 kB / 382.4 MB, free: 5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0162/0.3211, allocations: 6.022 MB / 388.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3212, allocations: 0 / 388.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.3212, allocations: 8 kB / 388.4 MB, free: 14.95 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001077/0.3223, allocations: 0.6012 MB / 389 MB, free: 14.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.3223, allocations: 8.031 kB / 389 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.464e-05/0.3224, allocations: 39.53 kB / 389.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.3228, allocations: 275.7 kB / 389.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-05/0.3229, allocations: 76.06 kB / 389.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.152e-05/0.3229, allocations: 36 kB / 389.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005801/0.3235, allocations: 342.5 kB / 389.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.3236, allocations: 0 / 389.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.68e-05/0.3236, allocations: 16 kB / 389.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.3236, allocations: 8 kB / 389.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004557/0.3241, allocations: 238.1 kB / 390.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.3261, allocations: 1.406 MB / 391.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004301/0.3265, allocations: 206.7 kB / 391.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.3266, allocations: 11.92 kB / 391.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003339/0.3269, allocations: 165.8 kB / 391.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.372e-06/0.3269, allocations: 0 / 391.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.001179/0.3281, allocations: 446.9 kB / 392.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.272e-05/0.3282, allocations: 110.8 kB / 392.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.3284, allocations: 229.9 kB / 392.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3285, allocations: 33.7 kB / 392.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.3286, allocations: 199.9 kB / 392.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.327e-05/0.3287, allocations: 66.64 kB / 392.9 MB, free: 10.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.395e-05/0.3287, allocations: 8 kB / 392.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.3288, allocations: 338.8 kB / 393.2 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.329, allocations: 83.97 kB / 393.3 MB, free: 9.746 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.3292, allocations: 172 kB / 393.5 MB, free: 9.543 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.3295, allocations: 92.75 kB / 393.6 MB, free: 9.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3295, allocations: 4 kB / 393.6 MB, free: 9.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005597/0.33, allocations: 319.8 kB / 393.9 MB, free: 9.129 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.3301, allocations: 10.19 kB / 393.9 MB, free: 9.121 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3301, allocations: 0 / 393.9 MB, free: 9.121 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.3304, allocations: 61.09 kB / 394 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.3307, allocations: 79.89 kB / 394 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.3319, allocations: 1.416 MB / 395.5 MB, free: 7.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.3322, allocations: 47.7 kB / 395.5 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.3322, allocations: 16 kB / 395.5 MB, free: 7.363 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001505/0.3324, allocations: 149.8 kB / 395.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.744e-05/0.3324, allocations: 35.86 kB / 395.7 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.821e-05/0.3325, allocations: 26.17 kB / 395.7 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3325, allocations: 4 kB / 395.7 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.3325, allocations: 0 / 395.7 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3325, allocations: 0 / 395.7 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003173/0.3328, allocations: 341.3 kB / 396.1 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3328, allocations: 3.938 kB / 396.1 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002507/0.3331, allocations: 63.91 kB / 396.1 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001777/0.3333, allocations: 52.77 kB / 396.2 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.3333, allocations: 7.984 kB / 396.2 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.3344, allocations: 1.327 MB / 397.5 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3344, allocations: 12.22 kB / 397.5 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007527/0.3352, allocations: 373.8 kB / 397.9 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.3353, allocations: 120.8 kB / 398 MB, free: 4.629 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.3353, allocations: 4 kB / 398 MB, free: 4.625 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.3355, allocations: 24.05 kB / 398 MB, free: 4.602 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.602e-05/0.3356, allocations: 31.94 kB / 398.1 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.3356, allocations: 8 kB / 398.1 MB, free: 4.562 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001533/0.3358, allocations: 190 kB / 398.3 MB, free: 4.379 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3358, allocations: 0 / 398.3 MB, free: 4.379 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003593/0.3362, allocations: 91.69 kB / 398.4 MB, free: 4.289 MB / 298.7 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: 4 ($whenCondition1,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001402/0.3363, allocations: 112.7 kB / 398.5 MB, free: 4.172 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006378/0.337, allocations: 328.1 kB / 398.8 MB, free: 3.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.337, allocations: 4.062 kB / 398.8 MB, free: 3.836 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003264/0.3373, allocations: 206.6 kB / 399 MB, free: 3.621 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002417/0.3376, allocations: 32.27 kB / 399 MB, free: 3.594 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/0.3392, allocations: 0.8275 MB / 399.8 MB, free: 2.742 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.3395, allocations: 0.7796 MB / 400.6 MB, free: 1.934 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.3396, allocations: 26.28 kB / 400.7 MB, free: 1.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.734e-05/0.3397, allocations: 19.44 kB / 400.7 MB, free: 1.891 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3397, allocations: 0 / 400.7 MB, free: 1.891 MB / 298.7 MB Notification: Performance of Templates: time 0.005967/0.3457, allocations: 2.843 MB / 403.5 MB, free: 15.07 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)