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.002189/0.00219, allocations: 103.8 kB / 17.06 MB, free: 6.027 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.003947/0.003947, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.906/2.906, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 43.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7066/0.7085, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.01616/0.7248, allocations: 3.141 MB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002704/0.7276, allocations: 0.74 MB / 404.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004822/0.7281, allocations: 11.94 kB / 404.1 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000382/0.7286, allocations: 59.42 kB / 404.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004912/0.7291, allocations: 107 kB / 404.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007851/0.7299, allocations: 103.8 kB / 404.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008012/0.7307, allocations: 422.1 kB / 404.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004306/0.7312, allocations: 143.7 kB / 405 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003578/0.7315, allocations: 155.4 kB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003522/0.7319, allocations: 179.2 kB / 405.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.871e-05/0.732, allocations: 32 kB / 405.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.556e-05/0.7321, allocations: 36 kB / 405.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.7322, allocations: 83.75 kB / 405.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003178/0.7326, allocations: 183.1 kB / 405.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008196/0.7334, allocations: 428.2 kB / 406 MB, free: 3.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.19e-05/0.7334, allocations: 0 / 406 MB, free: 3.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.448e-06/0.7334, allocations: 0 / 406 MB, free: 3.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.509e-05/0.7335, allocations: 0 / 406 MB, free: 3.004 MB / 318.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.002117/0.7356, allocations: 0.6471 MB / 406.7 MB, free: 2.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.000104/0.7357, allocations: 8.031 kB / 406.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001638/0.7359, allocations: 74.72 kB / 406.8 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.7361, allocations: 40.47 kB / 406.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008665/0.737, allocations: 285.2 kB / 407.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.7371, allocations: 80.62 kB / 407.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.7373, allocations: 40.28 kB / 407.2 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009091/0.7382, allocations: 338.7 kB / 407.5 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.7382, allocations: 3.938 kB / 407.5 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.486e-05/0.7383, allocations: 12 kB / 407.5 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.7383, allocations: 8 kB / 407.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006481/0.739, allocations: 218.5 kB / 407.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002988/0.742, allocations: 1.352 MB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005108/0.7425, allocations: 174.5 kB / 409.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.7428, allocations: 88.81 kB / 409.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.7428, allocations: 7.984 kB / 409.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004631/0.7433, allocations: 155 kB / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 3.577e-06/0.7433, allocations: 0 / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001576/0.7449, allocations: 404.9 kB / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.7451, allocations: 110.8 kB / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004173/0.7455, allocations: 266.6 kB / 410.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.7455, allocations: 29.7 kB / 410.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.7458, allocations: 203.9 kB / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.366e-05/0.7459, allocations: 74.94 kB / 410.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.746, allocations: 62.02 kB / 410.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002699/0.7463, allocations: 338.8 kB / 411 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000258/0.7466, allocations: 72.62 kB / 411.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/0.747, allocations: 189.4 kB / 411.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005244/0.7475, allocations: 240.3 kB / 411.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.7475, allocations: 0 / 411.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009445/0.7485, allocations: 336.4 kB / 411.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.7485, allocations: 16 kB / 411.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.7486, allocations: 4 kB / 411.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003838/0.7489, allocations: 52.81 kB / 411.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003802/0.7493, allocations: 59.91 kB / 411.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/0.7515, allocations: 1.572 MB / 413.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004623/0.752, allocations: 43.67 kB / 413.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/0.7521, allocations: 12 kB / 413.6 MB, free: 10.9 MB / 334.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.000371/0.7525, allocations: 149.8 kB / 413.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-05/0.7526, allocations: 31.66 kB / 413.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.445e-05/0.7526, allocations: 30.25 kB / 413.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.7527, allocations: 4 kB / 413.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.7527, allocations: 3.984 kB / 413.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.7527, allocations: 0 / 413.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000559/0.7533, allocations: 341.3 kB / 414.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.7533, allocations: 4 kB / 414.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.7536, allocations: 39.91 kB / 414.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002681/0.7538, allocations: 60.75 kB / 414.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.7539, allocations: 0 / 414.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001855/0.7557, allocations: 1.422 MB / 415.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.7558, allocations: 0 / 415.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009977/0.7568, allocations: 352.5 kB / 416 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.757, allocations: 120.8 kB / 416.1 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.757, allocations: 4 kB / 416.1 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.7573, allocations: 15.98 kB / 416.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.7574, allocations: 35.89 kB / 416.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.7574, allocations: 4.062 kB / 416.1 MB, free: 8.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002632/0.7577, allocations: 189.9 kB / 416.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7577, allocations: 0 / 416.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006576/0.7584, allocations: 95.75 kB / 416.4 MB, free: 7.781 MB / 334.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.001598/0.76, allocations: 0.8784 MB / 417.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009919/0.761, allocations: 310.4 kB / 417.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.761, allocations: 4.75 kB / 417.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004292/0.7615, allocations: 213.3 kB / 417.8 MB, free: 6.328 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.7619, allocations: 32.48 kB / 417.9 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006516/0.7685, allocations: 2.889 MB / 420.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.7691, allocations: 0.7713 MB / 421.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.7693, allocations: 22.3 kB / 421.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.7695, allocations: 95.41 kB / 421.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of SimCode: time 1.573e-06/0.7695, allocations: 0 / 421.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2248/0.9943, allocations: 6.148 MB / 427.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.57/28.56, allocations: 4.562 kB / 427.8 MB, free: 12.36 MB / 350.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