Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_cpp_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.000876/0.000876, allocations: 192.3 kB / 17.37 MB, free: 4.434 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: 226.5 MB / 244.7 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007453/0.0007453, allocations: 96.91 kB / 296.7 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002142/0.0002143, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1818, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002012/0.1839, allocations: 2.45 MB / 410.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000802/0.1847, allocations: 0.722 MB / 411.3 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.1848, allocations: 4.75 kB / 411.3 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.1849, allocations: 39.69 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.1851, allocations: 70.39 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.1853, allocations: 83.84 kB / 411.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.1855, allocations: 342.4 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.1857, allocations: 108.4 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.533e-05/0.1858, allocations: 111.6 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.1859, allocations: 131.4 kB / 412.2 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.186, allocations: 16 kB / 412.2 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.898e-05/0.186, allocations: 16 kB / 412.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.88e-05/0.1861, allocations: 55.81 kB / 412.3 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.1862, allocations: 165 kB / 412.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.1864, allocations: 260.5 kB / 412.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1864, allocations: 0.6562 kB / 412.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1864, allocations: 4 kB / 412.7 MB, free: 23.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1864, allocations: 0 / 412.7 MB, free: 23.13 MB / 298.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.000708/0.1871, allocations: 0.5666 MB / 413.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.1871, allocations: 8.031 kB / 413.3 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.284e-05/0.1872, allocations: 66.66 kB / 413.3 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.421e-05/0.1873, allocations: 36.56 kB / 413.4 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002083/0.1875, allocations: 260.4 kB / 413.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.363e-05/0.1875, allocations: 76.62 kB / 413.7 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.1876, allocations: 32.31 kB / 413.7 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000381/0.188, allocations: 301.7 kB / 414 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.188, allocations: 0 / 414 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.188, allocations: 12 kB / 414 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.188, allocations: 8 kB / 414 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002658/0.1883, allocations: 190.1 kB / 414.2 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.1895, allocations: 1.135 MB / 415.3 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.1898, allocations: 162.5 kB / 415.5 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.1899, allocations: 79.23 kB / 415.6 MB, free: 20.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.1899, allocations: 4 kB / 415.6 MB, free: 20.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.1901, allocations: 161.2 kB / 415.7 MB, free: 19.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.1902, allocations: 3.938 kB / 415.8 MB, free: 19.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008761/0.191, allocations: 395.1 kB / 416.1 MB, free: 19.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.1911, allocations: 106.8 kB / 416.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.1912, allocations: 225 kB / 416.5 MB, free: 19.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.1913, allocations: 33.7 kB / 416.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.247e-05/0.1913, allocations: 176.2 kB / 416.7 MB, free: 18.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.648e-05/0.1914, allocations: 75.08 kB / 416.7 MB, free: 18.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.241e-05/0.1914, allocations: 8 kB / 416.7 MB, free: 18.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.657e-05/0.1914, allocations: 334.8 kB / 417.1 MB, free: 18.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.1915, allocations: 67.84 kB / 417.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.1917, allocations: 140.7 kB / 417.3 MB, free: 18.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.1919, allocations: 188.2 kB / 417.5 MB, free: 17.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1919, allocations: 0 / 417.5 MB, free: 17.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003318/0.1922, allocations: 272.3 kB / 417.7 MB, free: 17.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.1923, allocations: 4 kB / 417.7 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1923, allocations: 0 / 417.7 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002233/0.1925, allocations: 65.03 kB / 417.8 MB, free: 17.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.1927, allocations: 51.92 kB / 417.8 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008572/0.1935, allocations: 1.412 MB / 419.3 MB, free: 16.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.1938, allocations: 39.83 kB / 419.3 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.1938, allocations: 12 kB / 419.3 MB, free: 15.98 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (34): * Single equations (assignments): 33 * 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.0001021/0.1939, allocations: 149.7 kB / 419.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.686e-05/0.1939, allocations: 27.66 kB / 419.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.194, allocations: 26.19 kB / 419.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.194, allocations: 7.938 kB / 419.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.194, allocations: 0 / 419.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.194, allocations: 3.984 kB / 419.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002178/0.1942, allocations: 321.4 kB / 419.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1942, allocations: 3.938 kB / 419.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000167/0.1944, allocations: 31.98 kB / 419.9 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001595/0.1946, allocations: 52.81 kB / 419.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.1946, allocations: 0 / 419.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007069/0.1953, allocations: 1.331 MB / 421.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1953, allocations: 4 kB / 421.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005052/0.1958, allocations: 336.2 kB / 421.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.027e-05/0.1959, allocations: 116.8 kB / 421.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.044e-05/0.1959, allocations: 8.109 kB / 421.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.1961, allocations: 23.98 kB / 421.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.015e-05/0.1962, allocations: 31.89 kB / 421.8 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.1962, allocations: 7.984 kB / 421.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.307e-05/0.1963, allocations: 156.5 kB / 421.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1963, allocations: 0 / 421.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003113/0.1966, allocations: 79.84 kB / 422 MB, free: 13.06 MB / 298.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.0006833/0.1973, allocations: 0.8711 MB / 422.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004252/0.1978, allocations: 286.5 kB / 423.1 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1978, allocations: 0 / 423.1 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.198, allocations: 196.8 kB / 423.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002933/0.1983, allocations: 36.8 kB / 423.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.2005, allocations: 1.672 MB / 425 MB, free: 9.879 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001373/0.2006, allocations: 0.7597 MB / 425.8 MB, free: 9.094 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.2007, allocations: 75.42 kB / 425.9 MB, free: 9.02 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2007, allocations: 3.938 kB / 425.9 MB, free: 9.016 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.858/3.059, allocations: 4.944 MB / 430.8 MB, free: 4.066 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches