Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.00124/0.00124, allocations: 180.7 kB / 16.38 MB, free: 5.762 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.478/1.478, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.001109/0.001109, allocations: 88.72 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002958/0.0002958, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2855, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1173/0.4029, allocations: 79.44 MB / 481 MB, free: 1.039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.4032, allocations: 67.97 kB / 481.1 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01621/0.4195, allocations: 5.6 MB / 486.7 MB, free: 11.35 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.828e-06/0.4195, allocations: 4 kB / 486.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.597e-05/0.4196, allocations: 4 kB / 486.7 MB, free: 11.34 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.001234/0.4208, allocations: 0.5643 MB / 487.3 MB, free: 10.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.4209, allocations: 16.02 kB / 487.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.421, allocations: 70.48 kB / 487.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.4212, allocations: 31.62 kB / 487.4 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004179/0.4216, allocations: 254.7 kB / 487.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.4217, allocations: 76.06 kB / 487.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.595e-05/0.4218, allocations: 31.94 kB / 487.7 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006076/0.4224, allocations: 301.6 kB / 488 MB, free: 9.891 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.4224, allocations: 4 kB / 488 MB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.4225, allocations: 8 kB / 488 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.4225, allocations: 12 kB / 488 MB, free: 9.867 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004069/0.4229, allocations: 190.1 kB / 488.2 MB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.4252, allocations: 1.131 MB / 489.4 MB, free: 8.469 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.4256, allocations: 162.5 kB / 489.5 MB, free: 8.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.4256, allocations: 4 kB / 489.5 MB, free: 8.297 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003994/0.426, allocations: 154.4 kB / 489.7 MB, free: 8.125 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.933e-06/0.426, allocations: 0 / 489.7 MB, free: 8.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001174/0.4272, allocations: 397.4 kB / 490.1 MB, free: 7.711 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.028e-05/0.4273, allocations: 103.2 kB / 490.2 MB, free: 7.586 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.4276, allocations: 212 kB / 490.4 MB, free: 7.375 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.4276, allocations: 33.7 kB / 490.4 MB, free: 7.336 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.4278, allocations: 164.3 kB / 490.6 MB, free: 7.172 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.627e-05/0.4279, allocations: 71.05 kB / 490.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.121e-05/0.4279, allocations: 8 kB / 490.6 MB, free: 7.094 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.4281, allocations: 334.8 kB / 491 MB, free: 6.758 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.4283, allocations: 64.53 kB / 491 MB, free: 6.691 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.4285, allocations: 133 kB / 491.2 MB, free: 6.539 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.4286, allocations: 78.78 kB / 491.2 MB, free: 6.465 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.4286, allocations: 0 / 491.2 MB, free: 6.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005169/0.4292, allocations: 260.2 kB / 491.5 MB, free: 6.203 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.4292, allocations: 4 kB / 491.5 MB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.4292, allocations: 4 kB / 491.5 MB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003532/0.4296, allocations: 52.97 kB / 491.5 MB, free: 6.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.4298, allocations: 55.91 kB / 491.6 MB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.4315, allocations: 1.408 MB / 493 MB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002872/0.4319, allocations: 44.02 kB / 493.1 MB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.4319, allocations: 15.94 kB / 493.1 MB, free: 4.484 MB / 362.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.0002102/0.4321, allocations: 139.3 kB / 493.2 MB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.127e-05/0.4322, allocations: 23.72 kB / 493.2 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.4322, allocations: 26.17 kB / 493.3 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.4323, allocations: 7.953 kB / 493.3 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.4323, allocations: 0 / 493.3 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.4323, allocations: 4 kB / 493.3 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00042/0.4327, allocations: 321.3 kB / 493.6 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.4327, allocations: 7.922 kB / 493.6 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.4329, allocations: 35.92 kB / 493.6 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002118/0.4331, allocations: 52.81 kB / 493.7 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.4332, allocations: 4 kB / 493.7 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.4346, allocations: 1.343 MB / 495 MB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4346, allocations: 0 / 495 MB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006752/0.4353, allocations: 315.6 kB / 495.3 MB, free: 2.008 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.4354, allocations: 117.2 kB / 495.4 MB, free: 1.875 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/0.4355, allocations: 0 / 495.4 MB, free: 1.875 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.4357, allocations: 23.94 kB / 495.5 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.4358, allocations: 35.88 kB / 495.5 MB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.4358, allocations: 8 kB / 495.5 MB, free: 1.809 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001877/0.436, allocations: 164.5 kB / 495.7 MB, free: 1.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.436, allocations: 0 / 495.7 MB, free: 1.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004061/0.4364, allocations: 91.69 kB / 495.8 MB, free: 1.555 MB / 362.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.001117/0.4375, allocations: 0.8704 MB / 496.6 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005975/0.4382, allocations: 278.5 kB / 496.9 MB, free: 376 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4382, allocations: 0 / 496.9 MB, free: 376 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003103/0.4385, allocations: 197.9 kB / 497.1 MB, free: 168 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.4388, allocations: 43.67 kB / 497.1 MB, free: 128 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.4424, allocations: 2.36 MB / 499.5 MB, free: 13.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.4429, allocations: 0.7635 MB / 0.4885 GB, free: 12.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.443, allocations: 29.92 kB / 0.4886 GB, free: 12.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.4431, allocations: 83.41 kB / 0.4886 GB, free: 12.79 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4432, allocations: 0 / 0.4886 GB, free: 12.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0232/0.4664, allocations: 5.022 MB / 0.4935 GB, free: 7.957 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002942/0.4667, allocations: 208.5 kB / 0.4937 GB, free: 7.715 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.334, allocations: 0 / 0.4937 GB, free: 7.715 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat