Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002628/0.002628, allocations: 180.4 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009193/0.0009194, allocations: 104 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002961/0.0002961, allocations: 8 kB / 351.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.282, allocations: 50.41 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.3883, allocations: 80.37 MB / 482 MB, free: 40 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.3885, allocations: 79.95 kB / 482 MB, free: 15.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01612/0.4047, allocations: 6.327 MB / 488.4 MB, free: 9.609 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4047, allocations: 4 kB / 488.4 MB, free: 9.605 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.4047, allocations: 4 kB / 488.4 MB, free: 9.602 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.0009521/0.4057, allocations: 0.6092 MB / 489 MB, free: 8.938 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.4057, allocations: 12.25 kB / 489 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.403e-05/0.4058, allocations: 66.53 kB / 489.1 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.49e-05/0.4059, allocations: 47.66 kB / 489.1 MB, free: 8.805 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/0.4062, allocations: 271.4 kB / 489.4 MB, free: 8.496 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.569e-05/0.4063, allocations: 76.34 kB / 489.4 MB, free: 8.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.556e-05/0.4064, allocations: 43.86 kB / 489.5 MB, free: 8.367 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005518/0.407, allocations: 326.8 kB / 489.8 MB, free: 8.035 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.407, allocations: 0 / 489.8 MB, free: 8.035 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.407, allocations: 20 kB / 489.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.407, allocations: 8 kB / 489.8 MB, free: 8.008 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000411/0.4074, allocations: 218.5 kB / 490 MB, free: 7.789 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.4094, allocations: 1.383 MB / 491.4 MB, free: 6.305 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.4097, allocations: 166.6 kB / 491.6 MB, free: 6.133 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.4097, allocations: 4.391 kB / 491.6 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003321/0.4101, allocations: 167.5 kB / 491.8 MB, free: 5.941 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.352e-06/0.4101, allocations: 4 kB / 491.8 MB, free: 5.938 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001126/0.4112, allocations: 419 kB / 492.2 MB, free: 5.504 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.327e-05/0.4113, allocations: 106.8 kB / 492.3 MB, free: 5.375 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.4115, allocations: 229.8 kB / 492.5 MB, free: 5.152 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.4116, allocations: 33.7 kB / 492.5 MB, free: 5.113 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.4117, allocations: 200 kB / 492.7 MB, free: 4.914 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.768e-05/0.4118, allocations: 67 kB / 492.8 MB, free: 4.848 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.683e-05/0.4118, allocations: 19.94 kB / 492.8 MB, free: 4.828 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4119, allocations: 330.8 kB / 493.1 MB, free: 4.496 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.4121, allocations: 79.95 kB / 493.2 MB, free: 4.418 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.4123, allocations: 162.4 kB / 493.4 MB, free: 4.219 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.4125, allocations: 86.83 kB / 493.5 MB, free: 4.137 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.4125, allocations: 4 kB / 493.5 MB, free: 4.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006339/0.4131, allocations: 336.5 kB / 493.8 MB, free: 3.797 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4132, allocations: 11.92 kB / 493.8 MB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.4132, allocations: 4 kB / 493.8 MB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002671/0.4135, allocations: 60.97 kB / 493.9 MB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.4137, allocations: 55.92 kB / 493.9 MB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.4151, allocations: 1.408 MB / 495.3 MB, free: 2.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.4153, allocations: 47.7 kB / 495.4 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.4154, allocations: 15.98 kB / 495.4 MB, free: 2.059 MB / 362.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.0001581/0.4155, allocations: 159.5 kB / 495.5 MB, free: 1.898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.833e-05/0.4156, allocations: 23.72 kB / 495.6 MB, free: 1.875 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.566e-05/0.4156, allocations: 38.16 kB / 495.6 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.4156, allocations: 4 kB / 495.6 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.4156, allocations: 0 / 495.6 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.4156, allocations: 0 / 495.6 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003486/0.416, allocations: 349.2 kB / 496 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.416, allocations: 0 / 496 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.4162, allocations: 39.92 kB / 496 MB, free: 1.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001722/0.4164, allocations: 48.81 kB / 496 MB, free: 1.348 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.545e-05/0.4164, allocations: 11.98 kB / 496 MB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.4176, allocations: 1.323 MB / 497.4 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4176, allocations: 0 / 497.4 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006994/0.4183, allocations: 362.2 kB / 497.7 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.4185, allocations: 120.7 kB / 497.8 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.347e-05/0.4185, allocations: 8 kB / 497.9 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.4187, allocations: 23.98 kB / 497.9 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.899e-05/0.4188, allocations: 31.94 kB / 497.9 MB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.4188, allocations: 8 kB / 497.9 MB, free: 15.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001744/0.419, allocations: 186 kB / 498.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.419, allocations: 0 / 498.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003695/0.4194, allocations: 91.84 kB / 498.2 MB, free: 15.04 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.001071/0.4205, allocations: 0.8995 MB / 499.1 MB, free: 14.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006006/0.4211, allocations: 314.9 kB / 499.4 MB, free: 13.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4211, allocations: 4.125 kB / 499.4 MB, free: 13.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.4214, allocations: 198.6 kB / 499.6 MB, free: 13.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.4217, allocations: 28.55 kB / 499.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00355/0.4252, allocations: 3.171 MB / 0.491 GB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.4256, allocations: 0.7868 MB / 0.4918 GB, free: 9.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.4258, allocations: 26.28 kB / 0.4918 GB, free: 9.449 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.4259, allocations: 95.41 kB / 0.4919 GB, free: 9.355 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4259, allocations: 0 / 0.4919 GB, free: 9.355 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.4453, allocations: 5.375 MB / 0.4971 GB, free: 4.195 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001977/0.4455, allocations: 215.9 kB / 0.4973 GB, free: 3.957 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/2.535, allocations: 0 / 0.4973 GB, free: 3.957 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat