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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 108.3 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002077/0.002076, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 48.09 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1463, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.007117/0.1535, allocations: 3.131 MB / 353.3 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.1559, allocations: 0.7478 MB / 354 MB, free: 412 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006045/0.1565, allocations: 4 kB / 354 MB, free: 408 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004804/0.157, allocations: 67.36 kB / 354.1 MB, free: 340 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000572/0.1576, allocations: 99.05 kB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005835/0.1582, allocations: 111.8 kB / 354.3 MB, free: 128 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006549/0.1589, allocations: 418.2 kB / 354.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003383/0.1593, allocations: 139.7 kB / 354.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003543/0.1596, allocations: 159.4 kB / 355 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003308/0.16, allocations: 175.2 kB / 355.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.819e-05/0.1601, allocations: 36 kB / 355.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.03e-05/0.1602, allocations: 36 kB / 355.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.762e-05/0.1602, allocations: 75.75 kB / 355.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003183/0.1606, allocations: 195.1 kB / 355.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.1611, allocations: 418.8 kB / 355.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1611, allocations: 0 / 355.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1611, allocations: 0 / 355.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.1611, allocations: 0 / 355.9 MB, free: 14.5 MB / 302.1 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.001442/0.1626, allocations: 0.6548 MB / 356.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/0.1626, allocations: 8.031 kB / 356.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.1627, allocations: 70.72 kB / 356.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.1629, allocations: 40.47 kB / 356.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005159/0.1634, allocations: 281.2 kB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.1635, allocations: 88.56 kB / 357.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.227e-05/0.1636, allocations: 28.38 kB / 357.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007057/0.1643, allocations: 334.7 kB / 357.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.1643, allocations: 0 / 357.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/0.1644, allocations: 16 kB / 357.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.1644, allocations: 11.94 kB / 357.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005098/0.1649, allocations: 222.5 kB / 357.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002616/0.1676, allocations: 1.364 MB / 359 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000477/0.1681, allocations: 170.5 kB / 359.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.1683, allocations: 92.81 kB / 359.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1683, allocations: 4 kB / 359.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004359/0.1687, allocations: 152.7 kB / 359.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.1687, allocations: 0 / 359.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001241/0.17, allocations: 410.9 kB / 359.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.1701, allocations: 106.8 kB / 359.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004403/0.1706, allocations: 258.7 kB / 360.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.1706, allocations: 29.7 kB / 360.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.1709, allocations: 207.8 kB / 360.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.84e-05/0.1709, allocations: 71.08 kB / 360.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.1711, allocations: 65.94 kB / 360.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002338/0.1714, allocations: 330.8 kB / 360.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.1716, allocations: 84.55 kB / 361 MB, free: 9.117 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002935/0.1719, allocations: 177.5 kB / 361.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.1723, allocations: 241.4 kB / 361.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.1724, allocations: 0 / 361.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008356/0.1732, allocations: 344.4 kB / 361.7 MB, free: 8.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.1732, allocations: 7.984 kB / 361.7 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1733, allocations: 4 kB / 361.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002964/0.1736, allocations: 52.81 kB / 361.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.1738, allocations: 72 kB / 361.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/0.1757, allocations: 1.568 MB / 363.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003521/0.1761, allocations: 39.67 kB / 363.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.796e-05/0.1762, allocations: 20 kB / 363.5 MB, free: 6.387 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002599/0.1764, allocations: 153.8 kB / 363.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-05/0.1765, allocations: 31.56 kB / 363.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.72e-05/0.1766, allocations: 30.17 kB / 363.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1766, allocations: 0 / 363.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1766, allocations: 0 / 363.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.1766, allocations: 11.97 kB / 363.7 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004814/0.1771, allocations: 329.5 kB / 364 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.1771, allocations: 0 / 364 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002076/0.1774, allocations: 43.91 kB / 364.1 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002116/0.1776, allocations: 48.77 kB / 364.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.1776, allocations: 11.98 kB / 364.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001511/0.1791, allocations: 1.422 MB / 365.5 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1792, allocations: 4.156 kB / 365.5 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009206/0.1801, allocations: 351.1 kB / 365.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001605/0.1803, allocations: 112.8 kB / 366 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.937e-05/0.1803, allocations: 11.98 kB / 366 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.1805, allocations: 20.05 kB / 366 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.1807, allocations: 27.91 kB / 366.1 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.1807, allocations: 15.92 kB / 366.1 MB, free: 3.547 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002183/0.1809, allocations: 182 kB / 366.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1809, allocations: 0 / 366.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005614/0.1815, allocations: 87.75 kB / 366.3 MB, free: 3.285 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001313/0.1828, allocations: 0.8961 MB / 367.2 MB, free: 2.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00073/0.1836, allocations: 318.8 kB / 367.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.1836, allocations: 0 / 367.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.184, allocations: 197.4 kB / 367.7 MB, free: 1.828 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.1843, allocations: 44.34 kB / 367.8 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2376/0.4219, allocations: 2.9 MB / 370.7 MB, free: 24.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.4223, allocations: 0.7699 MB / 371.5 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.4224, allocations: 28.09 kB / 371.5 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001785/0.4226, allocations: 97.42 kB / 371.6 MB, free: 23.65 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4226, allocations: 0 / 371.6 MB, free: 23.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04028/0.4629, allocations: 5.898 MB / 377.5 MB, free: 23.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.83, allocations: 5.094 kB / 377.5 MB, free: 23.12 MB / 302.1 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/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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches