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.001085/0.001085, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001042/0.001042, allocations: 195 kB / 18 MB, free: 5.074 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.282/1.282, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 51.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2872, allocations: 49.44 MB / 400.3 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00439/0.2916, allocations: 3.139 MB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.2929, allocations: 0.7361 MB / 404.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.2931, allocations: 4 kB / 404.1 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.2932, allocations: 63.36 kB / 404.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.2935, allocations: 111 kB / 404.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.2938, allocations: 107.8 kB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004088/0.2942, allocations: 418.2 kB / 404.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.2945, allocations: 139.7 kB / 404.9 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.2947, allocations: 159.4 kB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.2949, allocations: 175.2 kB / 405.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.108e-05/0.295, allocations: 39.94 kB / 405.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.229e-05/0.2951, allocations: 36 kB / 405.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.411e-05/0.2951, allocations: 75.75 kB / 405.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002267/0.2954, allocations: 187.1 kB / 405.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004368/0.2958, allocations: 425.2 kB / 406 MB, free: 3.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2958, allocations: 0 / 406 MB, free: 3.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2958, allocations: 0 / 406 MB, free: 3.008 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.2959, allocations: 4 kB / 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.001057/0.2969, allocations: 0.6613 MB / 406.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.297, allocations: 11.89 kB / 406.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.58e-05/0.297, allocations: 70.72 kB / 406.8 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.943e-05/0.2971, allocations: 44.7 kB / 406.8 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.2975, allocations: 293.2 kB / 407.1 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.2976, allocations: 84.61 kB / 407.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/0.2977, allocations: 28.38 kB / 407.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005436/0.2982, allocations: 342.7 kB / 407.5 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.2983, allocations: 4 kB / 407.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.374e-05/0.2983, allocations: 16 kB / 407.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.2983, allocations: 8 kB / 407.6 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003963/0.2987, allocations: 218.5 kB / 407.8 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.3005, allocations: 1.353 MB / 409.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003278/0.3009, allocations: 170.5 kB / 409.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.301, allocations: 84.83 kB / 409.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.3011, allocations: 4 kB / 409.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.3014, allocations: 159.5 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.3014, allocations: 0 / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001107/0.3025, allocations: 417.9 kB / 410 MB, free: 14.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.3026, allocations: 106.8 kB / 410.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/0.3028, allocations: 254.7 kB / 410.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.3029, allocations: 29.7 kB / 410.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.303, allocations: 220.2 kB / 410.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.483e-05/0.3031, allocations: 71.38 kB / 410.6 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.602e-05/0.3032, allocations: 62.03 kB / 410.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3033, allocations: 338.8 kB / 411 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.3035, allocations: 76.61 kB / 411.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/0.3037, allocations: 173.5 kB / 411.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.3041, allocations: 236.2 kB / 411.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.3041, allocations: 4 kB / 411.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006452/0.3047, allocations: 344.3 kB / 411.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.3047, allocations: 8 kB / 411.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3048, allocations: 0 / 411.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002678/0.305, allocations: 57.12 kB / 411.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.3053, allocations: 63.91 kB / 412 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.3067, allocations: 1.58 MB / 413.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002628/0.307, allocations: 43.81 kB / 413.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.307, allocations: 20 kB / 413.6 MB, free: 10.87 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.000164/0.3072, allocations: 149.7 kB / 413.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.3072, allocations: 31.73 kB / 413.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.12e-05/0.3073, allocations: 30.17 kB / 413.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.3073, allocations: 4 kB / 413.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.3073, allocations: 0 / 413.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3073, allocations: 0 / 413.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003349/0.3076, allocations: 345.4 kB / 414.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.3077, allocations: 8 kB / 414.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.3078, allocations: 31.98 kB / 414.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001827/0.308, allocations: 56.69 kB / 414.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.3081, allocations: 7.984 kB / 414.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.3092, allocations: 1.41 MB / 415.7 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3093, allocations: 7.922 kB / 415.7 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006791/0.3099, allocations: 352.6 kB / 416 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3101, allocations: 116.9 kB / 416.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.67e-05/0.3101, allocations: 8.125 kB / 416.1 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.3103, allocations: 19.98 kB / 416.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.884e-05/0.3104, allocations: 31.88 kB / 416.2 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.3104, allocations: 15.92 kB / 416.2 MB, free: 8.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001554/0.3106, allocations: 182 kB / 416.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3106, allocations: 0 / 416.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004193/0.311, allocations: 87.84 kB / 416.5 MB, free: 7.758 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.00105/0.3121, allocations: 0.8941 MB / 417.4 MB, free: 6.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006247/0.3127, allocations: 310.5 kB / 417.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3127, allocations: 0 / 417.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003064/0.313, allocations: 202.6 kB / 417.9 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.3133, allocations: 41.06 kB / 417.9 MB, free: 6.262 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004064/0.3174, allocations: 2.911 MB / 420.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.3177, allocations: 0.7677 MB / 421.6 MB, free: 2.406 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.3178, allocations: 34.27 kB / 421.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.3179, allocations: 91.41 kB / 421.7 MB, free: 2.281 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3179, allocations: 0 / 421.7 MB, free: 2.281 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.3458, allocations: 6.019 MB / 427.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.4, allocations: 14.8 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