Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.002318/0.002318, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.274/2.274, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001131/0.00113, allocations: 94.47 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.497e-05/3.521e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3428, allocations: 47.56 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1273/0.4702, allocations: 77.33 MB / 439.8 MB, free: 8.984 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.4705, allocations: 68.97 kB / 439.8 MB, free: 8.918 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02494/0.4955, allocations: 5.372 MB / 445.2 MB, free: 3.574 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4955, allocations: 0 / 445.2 MB, free: 3.574 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.027e-05/0.4956, allocations: 11.98 kB / 445.2 MB, free: 3.562 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001293/0.4969, allocations: 0.5435 MB / 445.8 MB, free: 2.98 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.4969, allocations: 8.031 kB / 445.8 MB, free: 2.973 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.4971, allocations: 35.62 kB / 445.8 MB, free: 2.938 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004581/0.4976, allocations: 258.4 kB / 446 MB, free: 2.645 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.4977, allocations: 69.73 kB / 446.1 MB, free: 2.566 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.645e-05/0.4978, allocations: 20 kB / 446.1 MB, free: 2.547 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005394/0.4983, allocations: 165.5 kB / 446.3 MB, free: 2.383 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006257/0.4989, allocations: 249.9 kB / 446.5 MB, free: 2.125 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.499, allocations: 224 / 446.5 MB, free: 2.125 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.228e-05/0.499, allocations: 4 kB / 446.5 MB, free: 2.121 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.4991, allocations: 11.94 kB / 446.6 MB, free: 2.109 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.5017, allocations: 1.068 MB / 447.6 MB, free: 0.9766 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.5022, allocations: 146.6 kB / 447.8 MB, free: 0.8242 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.5024, allocations: 68.89 kB / 447.8 MB, free: 0.7539 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-05/0.5024, allocations: 4 kB / 447.8 MB, free: 0.75 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.5028, allocations: 143.4 kB / 448 MB, free: 0.5859 MB / 331.1 MB Notification: Performance of pre-optimization done (n=21): time 3.106e-06/0.5028, allocations: 8 kB / 448 MB, free: 0.5781 MB / 331.1 MB Notification: Performance of matching and sorting (n=21): time 0.0008684/0.5037, allocations: 201 kB / 448.2 MB, free: 384 kB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.856e-05/0.5038, allocations: 106.8 kB / 448.3 MB, free: 252 kB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.5041, allocations: 163.6 kB / 448.4 MB, free: 80 kB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/0.5041, allocations: 29.7 kB / 448.5 MB, free: 44 kB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.5044, allocations: 247.2 kB / 448.7 MB, free: 15.8 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.614e-05/0.5045, allocations: 59.11 kB / 448.8 MB, free: 15.74 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.64e-05/0.5045, allocations: 0 / 448.8 MB, free: 15.74 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.5046, allocations: 322.8 kB / 449.1 MB, free: 15.42 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.5048, allocations: 56.56 kB / 449.1 MB, free: 15.36 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.5051, allocations: 119.9 kB / 449.3 MB, free: 15.22 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.5053, allocations: 62.12 kB / 449.3 MB, free: 15.16 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.5053, allocations: 0 / 449.3 MB, free: 15.16 MB / 347.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000638/0.5059, allocations: 224.3 kB / 449.5 MB, free: 14.93 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.506, allocations: 8.156 kB / 449.5 MB, free: 14.93 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.506, allocations: 6.344 kB / 449.6 MB, free: 14.92 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003961/0.5064, allocations: 56.81 kB / 449.6 MB, free: 14.86 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003831/0.5068, allocations: 43.92 kB / 449.7 MB, free: 14.82 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00184/0.5087, allocations: 1.372 MB / 451 MB, free: 13.33 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004182/0.5091, allocations: 23.83 kB / 451 MB, free: 13.3 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.5092, allocations: 12 kB / 451.1 MB, free: 13.29 MB / 347.1 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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (32): * Single equations (assignments): 31 * 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.0002014/0.5094, allocations: 113 kB / 451.2 MB, free: 13.18 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007476/0.5102, allocations: 212.3 kB / 451.4 MB, free: 12.96 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.379e-05/0.5103, allocations: 19.81 kB / 451.4 MB, free: 12.94 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.092e-05/0.5104, allocations: 29.89 kB / 451.4 MB, free: 12.91 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.5104, allocations: 4 kB / 451.4 MB, free: 12.91 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.5104, allocations: 0 / 451.4 MB, free: 12.91 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.5104, allocations: 0 / 451.4 MB, free: 12.91 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004492/0.5109, allocations: 273.9 kB / 451.7 MB, free: 12.6 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.5109, allocations: 0 / 451.7 MB, free: 12.6 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003229/0.5112, allocations: 39.88 kB / 451.7 MB, free: 12.56 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003059/0.5115, allocations: 48.83 kB / 451.8 MB, free: 12.51 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.983e-05/0.5116, allocations: 7.984 kB / 451.8 MB, free: 12.5 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001547/0.5131, allocations: 1.274 MB / 453.1 MB, free: 11.12 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.5132, allocations: 0 / 453.1 MB, free: 11.12 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.5143, allocations: 309.7 kB / 453.4 MB, free: 10.79 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/0.5145, allocations: 112.8 kB / 453.5 MB, free: 10.66 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.5145, allocations: 0 / 453.5 MB, free: 10.66 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.5148, allocations: 20.05 kB / 453.5 MB, free: 10.64 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.515, allocations: 34.56 kB / 453.5 MB, free: 10.61 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.515, allocations: 7.984 kB / 453.5 MB, free: 10.61 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001676/0.5152, allocations: 135.3 kB / 453.7 MB, free: 10.47 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5152, allocations: 0 / 453.7 MB, free: 10.47 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005788/0.5158, allocations: 71.75 kB / 453.7 MB, free: 10.4 MB / 347.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001394/0.5172, allocations: 0.8503 MB / 454.6 MB, free: 9.527 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0007661/0.518, allocations: 266.5 kB / 454.9 MB, free: 9.258 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.5181, allocations: 0 / 454.9 MB, free: 9.258 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003888/0.5185, allocations: 181.7 kB / 455 MB, free: 9.07 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.5189, allocations: 19.98 kB / 455 MB, free: 9.051 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002645/0.5215, allocations: 0.58 MB / 455.6 MB, free: 8.43 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.522, allocations: 0.7672 MB / 456.4 MB, free: 7.637 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.5222, allocations: 79.41 kB / 456.5 MB, free: 7.559 MB / 347.1 MB Notification: Performance of SimCode: time 1.402e-06/0.5222, allocations: 0 / 456.5 MB, free: 7.559 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.741/3.263, allocations: 5.033 MB / 461.5 MB, free: 2.562 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat