Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_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.001568/0.001568, allocations: 186.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.996/1.996, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 105.1 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003947/0.0003948, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3374, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.4642, allocations: 78.75 MB / 453.4 MB, free: 1.898 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.4646, allocations: 71.97 kB / 453.5 MB, free: 1.828 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02776/0.4924, allocations: 6.112 MB / 459.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4924, allocations: 4 kB / 459.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.976e-05/0.4925, allocations: 11.98 kB / 459.6 MB, free: 11.67 MB / 346.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.001504/0.494, allocations: 0.5975 MB / 460.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.723e-05/0.4941, allocations: 8.031 kB / 460.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002186/0.4943, allocations: 74.53 kB / 460.3 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001858/0.4945, allocations: 43.53 kB / 460.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006983/0.4952, allocations: 267.8 kB / 460.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/0.4954, allocations: 76.06 kB / 460.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.4955, allocations: 32 kB / 460.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.4967, allocations: 338.7 kB / 461 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.4967, allocations: 3.938 kB / 461 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.309e-05/0.4968, allocations: 12 kB / 461 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.4968, allocations: 8 kB / 461 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007413/0.4976, allocations: 226.5 kB / 461.2 MB, free: 9.875 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003108/0.5007, allocations: 1.395 MB / 462.6 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005294/0.5013, allocations: 166.6 kB / 462.8 MB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/0.5013, allocations: 0 / 462.8 MB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00046/0.5018, allocations: 167.7 kB / 463 MB, free: 8.023 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.974e-06/0.5018, allocations: 0 / 463 MB, free: 8.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001913/0.5038, allocations: 409.4 kB / 463.4 MB, free: 7.598 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.184e-05/0.5039, allocations: 114.8 kB / 463.5 MB, free: 7.461 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000401/0.5043, allocations: 229.8 kB / 463.7 MB, free: 7.234 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.5044, allocations: 37.64 kB / 463.7 MB, free: 7.191 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001903/0.5046, allocations: 254.4 kB / 464 MB, free: 6.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.5047, allocations: 75 kB / 464.1 MB, free: 6.867 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-05/0.5047, allocations: 4 kB / 464.1 MB, free: 6.863 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.5049, allocations: 327.1 kB / 464.4 MB, free: 6.535 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.5052, allocations: 75.95 kB / 464.5 MB, free: 6.461 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.5055, allocations: 170.6 kB / 464.6 MB, free: 6.254 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.5059, allocations: 89.88 kB / 464.7 MB, free: 6.168 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.5059, allocations: 0 / 464.7 MB, free: 6.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001117/0.507, allocations: 308.7 kB / 465 MB, free: 5.859 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.5071, allocations: 11.98 kB / 465 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.5071, allocations: 0 / 465 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003877/0.5075, allocations: 61.09 kB / 465.1 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004769/0.508, allocations: 55.92 kB / 465.1 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00191/0.5099, allocations: 1.412 MB / 466.6 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005687/0.5105, allocations: 51.91 kB / 466.6 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.105e-05/0.5106, allocations: 16 kB / 466.6 MB, free: 4.113 MB / 346.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: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked 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.0002717/0.5109, allocations: 145.8 kB / 466.8 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.989e-05/0.511, allocations: 27.62 kB / 466.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.393e-05/0.5111, allocations: 30.17 kB / 466.8 MB, free: 3.902 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.5111, allocations: 4 kB / 466.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.5111, allocations: 7.891 kB / 466.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5111, allocations: 0 / 466.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000518/0.5116, allocations: 337.4 kB / 467.2 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5117, allocations: 0 / 467.2 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004024/0.5121, allocations: 43.97 kB / 467.2 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000366/0.5124, allocations: 56.75 kB / 467.3 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.241e-05/0.5125, allocations: 15.92 kB / 467.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001749/0.5143, allocations: 1.323 MB / 468.6 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.5143, allocations: 7.891 kB / 468.6 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.5156, allocations: 352 kB / 468.9 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/0.5159, allocations: 120.8 kB / 469.1 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.544e-05/0.516, allocations: 4 kB / 469.1 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/0.5163, allocations: 24.05 kB / 469.1 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.5165, allocations: 35.89 kB / 469.1 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.5165, allocations: 8 kB / 469.1 MB, free: 1.359 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002911/0.5168, allocations: 182 kB / 469.3 MB, free: 1.184 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5169, allocations: 0 / 469.3 MB, free: 1.184 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006302/0.5175, allocations: 83.84 kB / 469.4 MB, free: 1.102 MB / 346.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) * 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 (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.001707/0.5192, allocations: 0.9027 MB / 470.3 MB, free: 172 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009799/0.5202, allocations: 316.6 kB / 470.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.5203, allocations: 0 / 470.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004755/0.5208, allocations: 198.6 kB / 470.8 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004184/0.5212, allocations: 43.12 kB / 470.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005723/0.5269, allocations: 3.201 MB / 474 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.5274, allocations: 0.783 MB / 474.8 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.5277, allocations: 91.41 kB / 474.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5277, allocations: 3.938 kB / 474.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.728/3.256, allocations: 5.827 MB / 480.7 MB, free: 5.586 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat