Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001755/0.001755, allocations: 123 kB / 17.79 MB, free: 5.246 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.002026/0.002026, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.456/1.456, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 47.94 kB / 373 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1036, allocations: 53.32 MB / 426.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004326/0.1079, allocations: 2.904 MB / 429.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.1094, allocations: 0.775 MB / 430 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.1095, allocations: 4 kB / 430 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.1097, allocations: 51.44 kB / 430.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.1099, allocations: 95.19 kB / 430.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003265/0.1102, allocations: 95.81 kB / 430.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004209/0.1106, allocations: 370.4 kB / 430.6 MB, free: 456 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.1108, allocations: 87.28 kB / 430.7 MB, free: 360 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.111, allocations: 151.4 kB / 430.8 MB, free: 208 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002167/0.1112, allocations: 151.4 kB / 431 MB, free: 56 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.858e-05/0.1113, allocations: 28 kB / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1817/0.293, allocations: 29.17 kB / 431 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.2931, allocations: 67.22 kB / 431.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000247/0.2934, allocations: 163 kB / 431.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000547/0.2939, allocations: 370.2 kB / 431.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2939, allocations: 1.812 kB / 431.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2939, allocations: 0 / 431.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.2939, allocations: 0.875 kB / 431.6 MB, free: 7.879 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009843/0.2949, allocations: 0.6129 MB / 432.2 MB, free: 7.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.295, allocations: 10.62 kB / 432.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.343e-05/0.295, allocations: 65.75 kB / 432.3 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.289e-05/0.2951, allocations: 39.23 kB / 432.4 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003323/0.2955, allocations: 266 kB / 432.6 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.739e-05/0.2955, allocations: 81.19 kB / 432.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.667e-05/0.2956, allocations: 25.81 kB / 432.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004592/0.296, allocations: 304.1 kB / 433 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.296, allocations: 3.188 kB / 433 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.2961, allocations: 13.22 kB / 433 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.2961, allocations: 7.5 kB / 433 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003049/0.2964, allocations: 188.6 kB / 433.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.2978, allocations: 1.122 MB / 434.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.298, allocations: 151.2 kB / 434.5 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.2981, allocations: 71.08 kB / 434.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.2981, allocations: 3.906 kB / 434.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.2984, allocations: 155.7 kB / 434.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.283e-06/0.2984, allocations: 7.5 kB / 434.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001027/0.2994, allocations: 382.9 kB / 435.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/0.2994, allocations: 113.6 kB / 435.2 MB, free: 6.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.2997, allocations: 221.8 kB / 435.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.2997, allocations: 31.55 kB / 435.5 MB, free: 5.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.696e-05/0.2998, allocations: 185.4 kB / 435.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.965e-05/0.2998, allocations: 71.05 kB / 435.7 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.558e-05/0.2999, allocations: 58.41 kB / 435.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.952e-05/0.3, allocations: 339.9 kB / 436.1 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.3001, allocations: 71.22 kB / 436.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.3002, allocations: 135.7 kB / 436.3 MB, free: 5.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.3004, allocations: 191.9 kB / 436.5 MB, free: 5.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3005, allocations: 0 / 436.5 MB, free: 5.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000392/0.3008, allocations: 277.3 kB / 436.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3009, allocations: 5.75 kB / 436.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.3009, allocations: 1.125 kB / 436.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002621/0.3011, allocations: 53.5 kB / 436.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.3013, allocations: 57.86 kB / 436.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000997/0.3023, allocations: 1.564 MB / 438.4 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.3026, allocations: 39.06 kB / 438.5 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.3026, allocations: 11.91 kB / 438.5 MB, free: 3.637 MB / 350.1 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,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * 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 (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.0001213/0.3027, allocations: 149.3 kB / 438.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-05/0.3028, allocations: 28.11 kB / 438.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.552e-05/0.3028, allocations: 29 kB / 438.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.3028, allocations: 2.156 kB / 438.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3028, allocations: 4.156 kB / 438.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3028, allocations: 1.266 kB / 438.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002806/0.3031, allocations: 327.8 kB / 439 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3031, allocations: 0 / 439 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.3033, allocations: 33.89 kB / 439.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.3034, allocations: 58.19 kB / 439.1 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.3034, allocations: 10 kB / 439.1 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008009/0.3042, allocations: 1.417 MB / 440.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3042, allocations: 0 / 440.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005693/0.3048, allocations: 329.3 kB / 440.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.897e-05/0.3049, allocations: 115.8 kB / 441 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.3049, allocations: 6.922 kB / 441 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.3051, allocations: 18.44 kB / 441 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.3052, allocations: 28.09 kB / 441 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.3052, allocations: 5.438 kB / 441 MB, free: 1.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001274/0.3053, allocations: 168.1 kB / 441.2 MB, free: 1.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3053, allocations: 0 / 441.2 MB, free: 1.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003646/0.3057, allocations: 87.34 kB / 441.3 MB, free: 1.582 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: 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 (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.0007727/0.3065, allocations: 0.8657 MB / 442.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005103/0.307, allocations: 277.5 kB / 442.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.307, allocations: 0 / 442.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.3072, allocations: 195.9 kB / 442.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.3075, allocations: 35.66 kB / 442.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003693/0.3112, allocations: 2.6 MB / 445.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.3116, allocations: 0.7612 MB / 446 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.3117, allocations: 28.7 kB / 446 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.3118, allocations: 82.59 kB / 446.1 MB, free: 14 MB / 366.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3118, allocations: 0 / 446.1 MB, free: 14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03845/0.3503, allocations: 5.686 MB / 451.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.83, allocations: 15.59 kB / 451.8 MB, free: 13.32 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.49903866898967]