Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 59.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1234, allocations: 53.31 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006199/0.1296, allocations: 3.166 MB / 429.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002175/0.1318, allocations: 0.8256 MB / 430.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002312/0.132, allocations: 7.938 kB / 430.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002274/0.1323, allocations: 67.36 kB / 430.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002966/0.1326, allocations: 103 kB / 430.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004919/0.1331, allocations: 123.7 kB / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005978/0.1337, allocations: 418.2 kB / 431 MB, free: 64 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2229/0.3565, allocations: 101 kB / 431.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004936/0.357, allocations: 160.3 kB / 431.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.3573, allocations: 177.8 kB / 431.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.628e-05/0.3573, allocations: 34.62 kB / 431.5 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.3574, allocations: 41.55 kB / 431.5 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.071e-05/0.3575, allocations: 81.22 kB / 431.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.3577, allocations: 194.1 kB / 431.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005026/0.3582, allocations: 427.8 kB / 432.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3582, allocations: 1.562 kB / 432.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3582, allocations: 2.125 kB / 432.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.3582, allocations: 0 / 432.2 MB, free: 7.473 MB / 350.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.0009386/0.3592, allocations: 0.6584 MB / 432.9 MB, free: 7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3592, allocations: 9.781 kB / 432.9 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.862e-05/0.3593, allocations: 70.09 kB / 433 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.3595, allocations: 55.91 kB / 433 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000334/0.3598, allocations: 280.1 kB / 433.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.14e-05/0.3599, allocations: 83.08 kB / 433.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.3599, allocations: 31.64 kB / 433.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004836/0.3604, allocations: 341.2 kB / 433.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3604, allocations: 0 / 433.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.3604, allocations: 18.31 kB / 433.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.3604, allocations: 7.938 kB / 433.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003854/0.3608, allocations: 219.9 kB / 434 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.3624, allocations: 1.361 MB / 435.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003208/0.3627, allocations: 163.5 kB / 435.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.3628, allocations: 85 kB / 435.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.3629, allocations: 2.062 kB / 435.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002618/0.3631, allocations: 162.6 kB / 435.7 MB, free: 5.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.3631, allocations: 0 / 435.7 MB, free: 5.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001089/0.3642, allocations: 396 kB / 436.1 MB, free: 5.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.3643, allocations: 118.3 kB / 436.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.3645, allocations: 262.3 kB / 436.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.3645, allocations: 31.23 kB / 436.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.986e-05/0.3646, allocations: 212.8 kB / 436.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.901e-05/0.3647, allocations: 80.77 kB / 436.8 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-05/0.3648, allocations: 62.03 kB / 436.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.3648, allocations: 335.6 kB / 437.2 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.365, allocations: 86.12 kB / 437.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.3652, allocations: 169.6 kB / 437.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002964/0.3655, allocations: 242.2 kB / 437.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3655, allocations: 1.344 kB / 437.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006327/0.3661, allocations: 345.8 kB / 438 MB, free: 4.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.3661, allocations: 5.562 kB / 438 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3661, allocations: 3.781 kB / 438 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002607/0.3664, allocations: 57.02 kB / 438.1 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/0.3666, allocations: 59.88 kB / 438.1 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.3677, allocations: 1.569 MB / 439.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.3679, allocations: 49.44 kB / 439.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.3679, allocations: 11.58 kB / 439.8 MB, free: 2.941 MB / 350.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.0001231/0.3681, allocations: 151.9 kB / 439.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.684e-05/0.3681, allocations: 26.23 kB / 439.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.823e-05/0.3682, allocations: 33.84 kB / 440 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.3682, allocations: 4.203 kB / 440 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3682, allocations: 0 / 440 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3682, allocations: 4.312 kB / 440 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.3685, allocations: 345.4 kB / 440.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3685, allocations: 5.094 kB / 440.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.3687, allocations: 38.42 kB / 440.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/0.3688, allocations: 53.61 kB / 440.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.3689, allocations: 6.781 kB / 440.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008454/0.3697, allocations: 1.416 MB / 441.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3697, allocations: 160 / 441.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006818/0.3704, allocations: 353.2 kB / 442.2 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.491e-05/0.3705, allocations: 113.8 kB / 442.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.3705, allocations: 6.844 kB / 442.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.3707, allocations: 23.2 kB / 442.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/0.3708, allocations: 31.12 kB / 442.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.3708, allocations: 9.156 kB / 442.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.371, allocations: 183.8 kB / 442.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.371, allocations: 0 / 442.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000395/0.3714, allocations: 92.75 kB / 442.6 MB, free: 0.6641 MB / 350.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.0009074/0.3723, allocations: 0.8938 MB / 443.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006495/0.3729, allocations: 308.6 kB / 443.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3729, allocations: 3.938 kB / 443.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.3732, allocations: 193.2 kB / 444 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.3735, allocations: 36.86 kB / 444.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/0.3782, allocations: 2.908 MB / 447 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.3786, allocations: 0.7737 MB / 447.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.3788, allocations: 28.31 kB / 447.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/0.3789, allocations: 98.3 kB / 447.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3789, allocations: 7.562 kB / 447.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04001/0.4189, allocations: 6.117 MB / 454 MB, free: 12.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.93, allocations: 9.172 kB / 454 MB, free: 12.11 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.90444405299786]