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.001627/0.001627, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00146/0.00146, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.43/1.43, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001584/0.001584, allocations: 43.94 kB / 377.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2925, allocations: 53.37 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00439/0.2969, allocations: 2.932 MB / 434 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2983, allocations: 0.7751 MB / 434.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.2984, allocations: 11.94 kB / 434.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.2986, allocations: 59.42 kB / 434.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.2988, allocations: 103.1 kB / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003789/0.2992, allocations: 127.7 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004316/0.2996, allocations: 414.2 kB / 435.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.2998, allocations: 98 kB / 435.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002471/0.3, allocations: 171.4 kB / 435.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000229/0.3003, allocations: 151.2 kB / 435.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.282e-05/0.3003, allocations: 36 kB / 435.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.571e-05/0.3004, allocations: 36 kB / 436 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.392e-05/0.3005, allocations: 87.73 kB / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001537/0.3006, allocations: 155.3 kB / 436.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004625/0.3011, allocations: 438.1 kB / 436.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3011, allocations: 0 / 436.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3011, allocations: 0 / 436.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.3011, allocations: 0 / 436.6 MB, free: 1.035 MB / 334.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.0009982/0.3021, allocations: 0.587 MB / 437.2 MB, free: 424 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3022, allocations: 12.03 kB / 437.2 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.504e-05/0.3023, allocations: 66.72 kB / 437.3 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.3024, allocations: 56.64 kB / 437.4 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004067/0.3028, allocations: 223.5 kB / 437.6 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.303, allocations: 136 kB / 437.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.465e-05/0.303, allocations: 32.31 kB / 437.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005883/0.3036, allocations: 394.1 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3036, allocations: 0 / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.3037, allocations: 12 kB / 438.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.3037, allocations: 8 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004417/0.3041, allocations: 222.5 kB / 438.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001857/0.306, allocations: 1.248 MB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003446/0.3063, allocations: 162.5 kB / 439.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.3065, allocations: 87.34 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.3065, allocations: 8 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003298/0.3068, allocations: 205.3 kB / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.723e-06/0.3068, allocations: 0 / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001036/0.3079, allocations: 337.2 kB / 440.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/0.3079, allocations: 106.8 kB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002822/0.3082, allocations: 273.7 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.3083, allocations: 25.7 kB / 440.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.3084, allocations: 212.3 kB / 441 MB, free: 12.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.218e-05/0.3085, allocations: 75.41 kB / 441.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.772e-05/0.3086, allocations: 65.97 kB / 441.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3087, allocations: 338.8 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.3089, allocations: 72.62 kB / 441.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.3091, allocations: 232.9 kB / 441.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003599/0.3095, allocations: 239.5 kB / 442 MB, free: 11.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.3095, allocations: 0 / 442 MB, free: 11.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006766/0.3102, allocations: 340.3 kB / 442.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.3102, allocations: 8.344 kB / 442.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3102, allocations: 4 kB / 442.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002688/0.3105, allocations: 56.81 kB / 442.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.3107, allocations: 63.84 kB / 442.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001434/0.3122, allocations: 1.464 MB / 443.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.3124, allocations: 39.77 kB / 444 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.3124, allocations: 19.98 kB / 444 MB, free: 9.156 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.0001615/0.3126, allocations: 149.8 kB / 444.1 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.244e-05/0.3126, allocations: 35.75 kB / 444.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.637e-05/0.3127, allocations: 34.27 kB / 444.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.3127, allocations: 0 / 444.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3127, allocations: 4 kB / 444.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3127, allocations: 0 / 444.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00031/0.313, allocations: 276.6 kB / 444.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.313, allocations: 0 / 444.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.3132, allocations: 39.91 kB / 444.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001788/0.3134, allocations: 64.73 kB / 444.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.3134, allocations: 4 kB / 444.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.3145, allocations: 1.311 MB / 445.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3145, allocations: 160 / 445.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006844/0.3152, allocations: 349.6 kB / 446.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.587e-05/0.3153, allocations: 47.75 kB / 446.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.584e-05/0.3153, allocations: 7.938 kB / 446.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.3155, allocations: 15.98 kB / 446.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.164e-05/0.3156, allocations: 39.88 kB / 446.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.3156, allocations: 12 kB / 446.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002016/0.3158, allocations: 193.1 kB / 446.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3158, allocations: 0 / 446.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003669/0.3162, allocations: 87.84 kB / 446.6 MB, free: 6.316 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.0009947/0.3172, allocations: 0.884 MB / 447.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005748/0.3177, allocations: 304.2 kB / 447.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3177, allocations: 0 / 447.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002902/0.318, allocations: 198.6 kB / 448 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.3183, allocations: 37.05 kB / 448 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004109/0.3224, allocations: 2.914 MB / 451 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001485/0.3225, allocations: 164.8 kB / 451.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.3227, allocations: 26.28 kB / 451.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.3228, allocations: 95.41 kB / 451.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3228, allocations: 0 / 451.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.361, allocations: 6.703 MB / 457.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.76, allocations: 6.391 kB / 457.9 MB, free: 10.96 MB / 366.1 MB " [Timeout remaining time 647] (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] "Warning: Resultfile and Reference have different end time points! Reffile[48038]=6.000000 File[819200]=0.006252 " [Timeout remaining time 657] "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:time,inductor1.i,inductor2.i [Calling sys.exit(0), Time elapsed: 70.66085624182597]