Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00106/0.00106, allocations: 198.2 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.195/1.195, allocations: 227.2 MB / 245 MB, free: 7.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008313/0.0008313, allocations: 94.03 kB / 297.2 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00019/0.00019, allocations: 7.984 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1892, allocations: 51.49 MB / 409.5 MB, free: 26.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08605/0.2752, allocations: 80.24 MB / 489.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000201/0.2755, allocations: 67.97 kB / 489.8 MB, free: 10.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01443/0.2899, allocations: 5.662 MB / 495.5 MB, free: 4.512 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.29, allocations: 0 / 495.5 MB, free: 4.512 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.29, allocations: 8 kB / 495.5 MB, free: 4.504 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008502/0.2908, allocations: 0.5683 MB / 496 MB, free: 3.887 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.2909, allocations: 11.97 kB / 496.1 MB, free: 3.875 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.028e-05/0.291, allocations: 66.53 kB / 496.1 MB, free: 3.801 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.038e-05/0.2911, allocations: 35.62 kB / 496.2 MB, free: 3.766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002616/0.2913, allocations: 246.6 kB / 496.4 MB, free: 3.484 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.608e-05/0.2914, allocations: 76.05 kB / 496.5 MB, free: 3.398 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.262e-05/0.2915, allocations: 35.94 kB / 496.5 MB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004397/0.2919, allocations: 289.8 kB / 496.8 MB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2919, allocations: 0 / 496.8 MB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.292, allocations: 16 kB / 496.8 MB, free: 3.055 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.292, allocations: 8 kB / 496.8 MB, free: 3.047 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000311/0.2923, allocations: 186.1 kB / 497 MB, free: 2.863 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/0.2938, allocations: 1.143 MB / 498.1 MB, free: 1.641 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.2941, allocations: 162.5 kB / 498.3 MB, free: 1.473 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.2941, allocations: 4 kB / 498.3 MB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.2943, allocations: 151.1 kB / 498.4 MB, free: 1.301 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.725e-06/0.2944, allocations: 0 / 498.4 MB, free: 1.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009502/0.2953, allocations: 401.3 kB / 498.8 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.2954, allocations: 110.8 kB / 498.9 MB, free: 0.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/0.2956, allocations: 208.1 kB / 499.1 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.2956, allocations: 33.7 kB / 499.2 MB, free: 0.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.877e-05/0.2957, allocations: 172.2 kB / 499.4 MB, free: 336 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.054e-05/0.2958, allocations: 71.08 kB / 499.4 MB, free: 264 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.128e-05/0.2958, allocations: 4 kB / 499.4 MB, free: 260 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.2959, allocations: 330.8 kB / 499.7 MB, free: 15.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.296, allocations: 64.53 kB / 499.8 MB, free: 15.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.2962, allocations: 136.6 kB / 499.9 MB, free: 15.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.2963, allocations: 77.16 kB / 0.4883 GB, free: 15.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2963, allocations: 0 / 0.4883 GB, free: 15.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003742/0.2967, allocations: 260.3 kB / 0.4885 GB, free: 15.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.2967, allocations: 8 kB / 0.4886 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2967, allocations: 0 / 0.4886 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002403/0.297, allocations: 56.77 kB / 0.4886 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.2972, allocations: 55.97 kB / 0.4887 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/0.2983, allocations: 1.412 MB / 0.49 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/0.2985, allocations: 31.75 kB / 0.4901 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.2986, allocations: 11.98 kB / 0.4901 GB, free: 13.65 MB / 378.7 MB 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 () * Number of clocked 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.000132/0.2987, allocations: 146.7 kB / 0.4902 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.233e-05/0.2987, allocations: 27.95 kB / 0.4903 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.599e-05/0.2988, allocations: 26.17 kB / 0.4903 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2988, allocations: 4 kB / 0.4903 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2988, allocations: 0 / 0.4903 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2988, allocations: 0 / 0.4903 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.2991, allocations: 321.3 kB / 0.4906 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2991, allocations: 0 / 0.4906 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.2993, allocations: 39.86 kB / 0.4906 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001747/0.2995, allocations: 56.81 kB / 0.4907 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.2995, allocations: 4 kB / 0.4907 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.3005, allocations: 1.335 MB / 0.492 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3005, allocations: 0 / 0.492 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000583/0.3011, allocations: 333.3 kB / 0.4923 GB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.128e-05/0.3012, allocations: 112.9 kB / 0.4924 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.3013, allocations: 4 kB / 0.4924 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.3014, allocations: 19.98 kB / 0.4924 GB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.181e-05/0.3015, allocations: 36 kB / 0.4925 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.3016, allocations: 8 kB / 0.4925 GB, free: 10.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001217/0.3017, allocations: 164.5 kB / 0.4926 GB, free: 10.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3017, allocations: 0 / 0.4926 GB, free: 10.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003405/0.302, allocations: 83.75 kB / 0.4927 GB, free: 10.73 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 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.0008357/0.3029, allocations: 0.8705 MB / 0.4936 GB, free: 9.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00046/0.3033, allocations: 289.1 kB / 0.4938 GB, free: 9.527 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3034, allocations: 0 / 0.4938 GB, free: 9.527 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002557/0.3036, allocations: 191 kB / 0.494 GB, free: 9.328 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.3039, allocations: 38.66 kB / 0.4941 GB, free: 9.293 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.3066, allocations: 2.379 MB / 0.4964 GB, free: 6.844 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.3068, allocations: 0.7635 MB / 0.4971 GB, free: 6.055 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.3069, allocations: 25.92 kB / 0.4972 GB, free: 6.027 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.3071, allocations: 87.41 kB / 0.4972 GB, free: 5.941 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3071, allocations: 0 / 0.4972 GB, free: 5.941 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.3242, allocations: 5.017 MB / 0.5021 GB, free: 1.117 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/0.3245, allocations: 208.1 kB / 0.5023 GB, free: 0.875 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/1.964, allocations: 3.938 kB / 0.5023 GB, free: 0.8711 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat