Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001185/0.001185, allocations: 202.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 227.2 MB / 245 MB, free: 7.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008464/0.0008464, allocations: 103.2 kB / 297.3 MB, free: 6.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000205/0.000205, allocations: 4 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.182, allocations: 51.49 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08766/0.2697, allocations: 81.19 MB / 490.7 MB, free: 9.418 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.2699, allocations: 67.97 kB / 490.8 MB, free: 9.352 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01669/0.2866, allocations: 6.431 MB / 497.2 MB, free: 2.895 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2867, allocations: 0 / 497.2 MB, free: 2.895 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.2867, allocations: 11.98 kB / 497.2 MB, free: 2.883 MB / 362.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.0009185/0.2876, allocations: 0.6055 MB / 497.8 MB, free: 2.223 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.2877, allocations: 12.03 kB / 497.8 MB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.648e-05/0.2878, allocations: 70.53 kB / 497.9 MB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.2879, allocations: 51.52 kB / 497.9 MB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.2882, allocations: 275.7 kB / 498.2 MB, free: 1.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.944e-05/0.2883, allocations: 76.06 kB / 498.3 MB, free: 1.684 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.2884, allocations: 36 kB / 498.3 MB, free: 1.648 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005106/0.2889, allocations: 334.8 kB / 498.6 MB, free: 1.309 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.2889, allocations: 0 / 498.6 MB, free: 1.309 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.92e-05/0.2889, allocations: 12 kB / 498.7 MB, free: 1.297 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.289, allocations: 8 kB / 498.7 MB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003907/0.2893, allocations: 226.5 kB / 498.9 MB, free: 1.062 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.2911, allocations: 1.387 MB / 0.4886 GB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.2914, allocations: 166.6 kB / 0.4887 GB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.2914, allocations: 4 kB / 0.4887 GB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000284/0.2917, allocations: 170.5 kB / 0.4889 GB, free: 15.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.2917, allocations: 0 / 0.4889 GB, free: 15.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001044/0.2928, allocations: 413.4 kB / 0.4893 GB, free: 14.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.2929, allocations: 114.8 kB / 0.4894 GB, free: 14.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.2931, allocations: 225.8 kB / 0.4896 GB, free: 14.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.2931, allocations: 33.7 kB / 0.4896 GB, free: 14.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.2933, allocations: 200 kB / 0.4898 GB, free: 14.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.972e-05/0.2933, allocations: 74.92 kB / 0.4899 GB, free: 14.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.353e-05/0.2934, allocations: 8 kB / 0.4899 GB, free: 14.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2935, allocations: 351 kB / 0.4902 GB, free: 13.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.2936, allocations: 71.97 kB / 0.4903 GB, free: 13.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.2938, allocations: 158.5 kB / 0.4905 GB, free: 13.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.294, allocations: 89.12 kB / 0.4905 GB, free: 13.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.294, allocations: 4 kB / 0.4905 GB, free: 13.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006196/0.2947, allocations: 328.8 kB / 0.4909 GB, free: 13.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.2947, allocations: 8 kB / 0.4909 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.2947, allocations: 4 kB / 0.4909 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002437/0.295, allocations: 52.81 kB / 0.4909 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.2952, allocations: 67.91 kB / 0.491 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.2964, allocations: 1.412 MB / 0.4924 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002449/0.2967, allocations: 47.7 kB / 0.4924 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.2967, allocations: 12 kB / 0.4924 GB, free: 11.33 MB / 378.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.0001479/0.2969, allocations: 150 kB / 0.4926 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/0.2969, allocations: 31.62 kB / 0.4926 GB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.739e-05/0.297, allocations: 26.17 kB / 0.4926 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.297, allocations: 4 kB / 0.4926 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.297, allocations: 3.953 kB / 0.4926 GB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.297, allocations: 3.984 kB / 0.4926 GB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003108/0.2973, allocations: 333.4 kB / 0.4929 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2973, allocations: 0 / 0.4929 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.2975, allocations: 39.97 kB / 0.493 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001752/0.2977, allocations: 56.75 kB / 0.493 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.2977, allocations: 8 kB / 0.493 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/0.2988, allocations: 1.331 MB / 0.4943 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2988, allocations: 7.938 kB / 0.4944 GB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000667/0.2995, allocations: 362 kB / 0.4947 GB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.2996, allocations: 108.8 kB / 0.4948 GB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.2997, allocations: 7.984 kB / 0.4948 GB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.2999, allocations: 24.05 kB / 0.4948 GB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.273e-05/0.3, allocations: 31.91 kB / 0.4949 GB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.3, allocations: 15.92 kB / 0.4949 GB, free: 8.574 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001589/0.3001, allocations: 178 kB / 0.495 GB, free: 8.402 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3001, allocations: 0 / 0.495 GB, free: 8.402 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003671/0.3005, allocations: 91.78 kB / 0.4951 GB, free: 8.312 MB / 378.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.000982/0.3015, allocations: 0.9091 MB / 0.496 GB, free: 7.371 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005656/0.3021, allocations: 318.8 kB / 0.4963 GB, free: 7.051 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3021, allocations: 0 / 0.4963 GB, free: 7.051 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002867/0.3024, allocations: 199.2 kB / 0.4965 GB, free: 6.844 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.3026, allocations: 38.42 kB / 0.4966 GB, free: 6.805 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003209/0.3058, allocations: 3.175 MB / 0.4997 GB, free: 3.543 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.3062, allocations: 0.7791 MB / 0.5004 GB, free: 2.738 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001145/0.3063, allocations: 34.27 kB / 0.5004 GB, free: 2.699 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.3064, allocations: 91.41 kB / 0.5005 GB, free: 2.609 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.3064, allocations: 0 / 0.5005 GB, free: 2.609 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1581/0.4645, allocations: 5.358 MB / 0.5058 GB, free: 95.33 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/0.4648, allocations: 220 kB / 0.506 GB, free: 95.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.207, allocations: 0 / 0.506 GB, free: 95.09 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat