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.001656/0.001656, allocations: 114 kB / 17.06 MB, free: 6.016 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.001759/0.001759, allocations: 189.4 kB / 18 MB, free: 5.098 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.411/1.411, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 35.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.278, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004612/0.2826, allocations: 3.147 MB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.2842, allocations: 0.7361 MB / 404.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001879/0.2844, allocations: 7.938 kB / 404.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.2847, allocations: 59.44 kB / 404.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002565/0.2849, allocations: 99.05 kB / 404.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003941/0.2853, allocations: 115.7 kB / 404.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004974/0.2859, allocations: 414.2 kB / 404.8 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.2861, allocations: 147.7 kB / 405 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.2864, allocations: 151.4 kB / 405.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.2866, allocations: 183.2 kB / 405.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.987e-05/0.2867, allocations: 36 kB / 405.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.474e-05/0.2868, allocations: 32 kB / 405.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.913e-05/0.2869, allocations: 83.73 kB / 405.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.2871, allocations: 183.1 kB / 405.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004895/0.2876, allocations: 429.2 kB / 406 MB, free: 3.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.2876, allocations: 0 / 406 MB, free: 3.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2876, allocations: 3.938 kB / 406 MB, free: 3.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.385e-06/0.2876, 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.001116/0.2887, allocations: 0.6545 MB / 406.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.2888, allocations: 12.03 kB / 406.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001123/0.2889, allocations: 66.72 kB / 406.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.838e-05/0.289, allocations: 48.7 kB / 406.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004703/0.2895, allocations: 285.2 kB / 407.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.2896, allocations: 84.61 kB / 407.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.584e-05/0.2897, allocations: 32.38 kB / 407.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005769/0.2902, allocations: 338.7 kB / 407.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.2903, allocations: 3.938 kB / 407.5 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.2903, allocations: 12 kB / 407.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.2903, allocations: 8 kB / 407.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000426/0.2908, allocations: 218.5 kB / 407.8 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.2927, allocations: 1.356 MB / 409.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003372/0.2931, allocations: 176.7 kB / 409.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.2932, allocations: 92.83 kB / 409.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.2933, allocations: 0 / 409.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003148/0.2936, allocations: 155.4 kB / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.783e-06/0.2936, allocations: 0 / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00117/0.2948, allocations: 417.9 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.183e-05/0.2949, allocations: 102.8 kB / 410.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.2952, allocations: 258.7 kB / 410.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.2952, allocations: 29.7 kB / 410.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.2954, allocations: 216.3 kB / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.226e-05/0.2954, allocations: 75.38 kB / 410.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.915e-05/0.2955, allocations: 61.97 kB / 410.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.2957, allocations: 338.8 kB / 411 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.2959, allocations: 76.61 kB / 411.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002513/0.2962, allocations: 177.5 kB / 411.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003681/0.2966, allocations: 232.3 kB / 411.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.2966, allocations: 4 kB / 411.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006819/0.2973, allocations: 352.1 kB / 411.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.2973, allocations: 4.344 kB / 411.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2973, allocations: 8 kB / 411.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002719/0.2976, allocations: 60.8 kB / 411.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/0.2978, allocations: 59.91 kB / 412 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001614/0.2995, allocations: 1.572 MB / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.2997, allocations: 47.75 kB / 413.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.2998, allocations: 16 kB / 413.6 MB, free: 10.88 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.0001878/0.3, allocations: 149.7 kB / 413.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.327e-05/0.3, allocations: 27.8 kB / 413.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.884e-05/0.3001, allocations: 34.23 kB / 413.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3001, allocations: 4 kB / 413.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.3001, allocations: 0 / 413.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3001, allocations: 0 / 413.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/0.3005, allocations: 341.4 kB / 414.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3006, allocations: 3.938 kB / 414.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001866/0.3007, allocations: 31.98 kB / 414.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.3009, allocations: 60.75 kB / 414.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.555e-05/0.301, allocations: 7.984 kB / 414.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001374/0.3024, allocations: 1.422 MB / 415.7 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3024, allocations: 0 / 415.7 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007535/0.3031, allocations: 360.5 kB / 416 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.3033, allocations: 116.9 kB / 416.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.3033, allocations: 0 / 416.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.3035, allocations: 19.98 kB / 416.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.3036, allocations: 31.89 kB / 416.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.418e-05/0.3036, allocations: 11.98 kB / 416.2 MB, free: 8.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002091/0.3038, allocations: 182 kB / 416.4 MB, free: 7.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3038, allocations: 7.938 kB / 416.4 MB, free: 7.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003695/0.3042, allocations: 87.84 kB / 416.5 MB, free: 7.766 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.001038/0.3053, allocations: 0.8863 MB / 417.3 MB, free: 6.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000608/0.3059, allocations: 314.4 kB / 417.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3059, allocations: 0 / 417.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003099/0.3062, allocations: 206.1 kB / 417.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.3065, allocations: 36.44 kB / 417.9 MB, free: 6.277 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004418/0.3109, allocations: 2.908 MB / 420.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.3114, allocations: 0.7716 MB / 421.6 MB, free: 2.418 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.3115, allocations: 26.28 kB / 421.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.3116, allocations: 95.41 kB / 421.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3116, allocations: 0 / 421.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03364/0.3453, allocations: 6.03 MB / 427.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.54, allocations: 8.5 kB / 427.7 MB, free: 12.43 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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/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