Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 177.9 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009173/0.0009173, allocations: 78.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.93e-05/1.931e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09854/0.09858, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3703/0.4689, allocations: 78.22 MB / 441.4 MB, free: 1.402 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.4692, allocations: 69.77 kB / 441.5 MB, free: 1.367 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01617/0.4854, allocations: 6.053 MB / 447.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4854, allocations: 0 / 447.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.35e-05/0.4854, allocations: 8 kB / 447.5 MB, free: 12.32 MB / 330.7 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.0009531/0.4864, allocations: 0.5721 MB / 448.1 MB, free: 11.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.4865, allocations: 12.22 kB / 448.1 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.903e-05/0.4866, allocations: 39.53 kB / 448.1 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000341/0.4869, allocations: 263.5 kB / 448.4 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.491e-05/0.487, allocations: 72.12 kB / 448.5 MB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.488e-05/0.4871, allocations: 23.38 kB / 448.5 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003316/0.4874, allocations: 179.4 kB / 448.7 MB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004758/0.4879, allocations: 283.5 kB / 448.9 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.4879, allocations: 0 / 448.9 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.4879, allocations: 3.938 kB / 448.9 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.488, allocations: 8 kB / 449 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.4898, allocations: 1.32 MB / 450.3 MB, free: 9.723 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.4901, allocations: 150.5 kB / 450.4 MB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.4902, allocations: 73.56 kB / 450.5 MB, free: 9.566 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.4902, allocations: 0 / 450.5 MB, free: 9.566 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.4905, allocations: 150.9 kB / 450.6 MB, free: 9.426 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.142e-06/0.4905, allocations: 0 / 450.6 MB, free: 9.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005721/0.4911, allocations: 204.1 kB / 450.8 MB, free: 9.254 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.274e-05/0.4912, allocations: 106.8 kB / 450.9 MB, free: 9.125 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.4914, allocations: 197.3 kB / 451.1 MB, free: 8.957 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.4914, allocations: 29.7 kB / 451.2 MB, free: 8.922 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.4916, allocations: 207.2 kB / 451.4 MB, free: 8.746 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.277e-05/0.4916, allocations: 70.42 kB / 451.4 MB, free: 8.684 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.271e-05/0.4917, allocations: 0 / 451.4 MB, free: 8.684 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.4918, allocations: 329.4 kB / 451.8 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.492, allocations: 64.3 kB / 451.8 MB, free: 8.324 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.4921, allocations: 153.9 kB / 452 MB, free: 8.168 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.4923, allocations: 73.92 kB / 452 MB, free: 8.121 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4923, allocations: 7.891 kB / 452.1 MB, free: 8.113 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005486/0.4929, allocations: 278.1 kB / 452.3 MB, free: 7.883 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.4929, allocations: 12 kB / 452.3 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.4929, allocations: 3.984 kB / 452.3 MB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002797/0.4932, allocations: 51.58 kB / 452.4 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002637/0.4935, allocations: 67.59 kB / 452.5 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.4949, allocations: 1.367 MB / 453.8 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.4951, allocations: 35.77 kB / 453.9 MB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.4951, allocations: 23.25 kB / 453.9 MB, free: 6.281 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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.0001918/0.4953, allocations: 113 kB / 454 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004542/0.4958, allocations: 209.5 kB / 454.2 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.599e-05/0.4958, allocations: 23.72 kB / 454.2 MB, free: 5.965 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.9e-05/0.4959, allocations: 27.45 kB / 454.2 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.4959, allocations: 3.953 kB / 454.3 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.4959, allocations: 0 / 454.3 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4959, allocations: 0 / 454.3 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003297/0.4963, allocations: 296 kB / 454.5 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4963, allocations: 0 / 454.5 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.4965, allocations: 31.98 kB / 454.6 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001766/0.4967, allocations: 55.31 kB / 454.6 MB, free: 5.594 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.4967, allocations: 7.984 kB / 454.6 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.4979, allocations: 1.276 MB / 455.9 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4979, allocations: 0 / 455.9 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005868/0.4985, allocations: 317.1 kB / 456.2 MB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.4986, allocations: 118.6 kB / 456.3 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.4987, allocations: 8 kB / 456.3 MB, free: 3.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.4988, allocations: 15.98 kB / 456.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.407e-05/0.4989, allocations: 31.31 kB / 456.4 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.499, allocations: 7.953 kB / 456.4 MB, free: 3.805 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001379/0.4991, allocations: 155.2 kB / 456.5 MB, free: 3.676 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4991, allocations: 0 / 456.5 MB, free: 3.676 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004123/0.4995, allocations: 83.84 kB / 456.6 MB, free: 3.594 MB / 330.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: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * 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 (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.0009433/0.5005, allocations: 0.8492 MB / 457.5 MB, free: 2.785 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004741/0.501, allocations: 277.6 kB / 457.8 MB, free: 2.559 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.501, allocations: 0 / 457.8 MB, free: 2.559 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002345/0.5012, allocations: 182.7 kB / 457.9 MB, free: 2.395 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.5014, allocations: 29.38 kB / 458 MB, free: 2.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.5028, allocations: 0.5257 MB / 458.5 MB, free: 1.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.5032, allocations: 0.7794 MB / 459.3 MB, free: 1.035 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.5033, allocations: 22.08 kB / 459.3 MB, free: 1.016 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.5034, allocations: 95.08 kB / 459.4 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5034, allocations: 3.938 kB / 459.4 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02496/0.5284, allocations: 4.406 MB / 463.8 MB, free: 12.58 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002217/0.5287, allocations: 149.7 kB / 463.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.28, allocations: 0 / 463.9 MB, free: 12.39 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat