Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00159/0.00159, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00187/0.00187, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2863, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004472/0.2908, allocations: 3.157 MB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.2922, allocations: 0.81 MB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.2924, allocations: 7.938 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.2926, allocations: 59.44 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.2928, allocations: 107 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.2932, allocations: 131.7 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004084/0.2936, allocations: 414.2 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002465/0.2939, allocations: 139.7 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002885/0.2942, allocations: 167.4 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.2944, allocations: 175.2 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/0.2945, allocations: 36 kB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.95e-05/0.2946, allocations: 40 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.232e-05/0.2947, allocations: 87.67 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.2949, allocations: 183.1 kB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005015/0.2954, allocations: 433.2 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.2954, allocations: 0 / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2954, allocations: 0 / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.2954, allocations: 0 / 414.7 MB, free: 11.58 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.001041/0.2965, allocations: 0.6584 MB / 415.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.2965, allocations: 12.03 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.255e-05/0.2966, allocations: 70.66 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001823/0.2968, allocations: 52.66 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.2972, allocations: 289.3 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.222e-05/0.2973, allocations: 80.62 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/0.2973, allocations: 36.38 kB / 415.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000533/0.2979, allocations: 342.6 kB / 416.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2979, allocations: 0 / 416.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.2979, allocations: 19.98 kB / 416.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.2979, allocations: 8 kB / 416.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003944/0.2983, allocations: 222.4 kB / 416.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.3002, allocations: 1.36 MB / 417.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.3005, allocations: 173.8 kB / 418 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.3007, allocations: 98.98 kB / 418.1 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.3007, allocations: 4 kB / 418.1 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002955/0.301, allocations: 157.5 kB / 418.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.301, allocations: 0 / 418.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001116/0.3022, allocations: 399.5 kB / 418.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/0.3022, allocations: 114.8 kB / 418.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.3025, allocations: 262.6 kB / 419 MB, free: 6.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.3025, allocations: 33.7 kB / 419 MB, free: 6.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.3027, allocations: 216.3 kB / 419.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.275e-05/0.3028, allocations: 71.39 kB / 419.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.376e-05/0.3029, allocations: 62.02 kB / 419.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.303, allocations: 338.8 kB / 419.7 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.3032, allocations: 72.62 kB / 419.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.3034, allocations: 181.5 kB / 419.9 MB, free: 5.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003379/0.3037, allocations: 235.5 kB / 420.2 MB, free: 5.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3038, allocations: 0 / 420.2 MB, free: 5.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006595/0.3044, allocations: 344.5 kB / 420.5 MB, free: 5.324 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3045, allocations: 8.062 kB / 420.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3045, allocations: 7.938 kB / 420.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002676/0.3048, allocations: 52.81 kB / 420.6 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.305, allocations: 67.84 kB / 420.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.3063, allocations: 1.568 MB / 422.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002595/0.3066, allocations: 43.72 kB / 422.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.3067, allocations: 19.98 kB / 422.3 MB, free: 3.422 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.0001606/0.3068, allocations: 152.7 kB / 422.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.045e-05/0.3069, allocations: 27.8 kB / 422.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.659e-05/0.3069, allocations: 38.23 kB / 422.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3069, allocations: 0 / 422.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3069, allocations: 0 / 422.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3069, allocations: 4 kB / 422.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00032/0.3073, allocations: 341.3 kB / 422.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3073, allocations: 4 kB / 422.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.3075, allocations: 39.92 kB / 422.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/0.3077, allocations: 56.75 kB / 422.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.3077, allocations: 4 kB / 422.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.3088, allocations: 1.414 MB / 424.3 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3088, allocations: 3.938 kB / 424.3 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006748/0.3095, allocations: 357.2 kB / 424.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.3096, allocations: 116.9 kB / 424.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/0.3097, allocations: 4 kB / 424.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.3099, allocations: 15.98 kB / 424.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.328e-05/0.31, allocations: 31.89 kB / 424.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.31, allocations: 8.062 kB / 424.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001776/0.3102, allocations: 190 kB / 425 MB, free: 408 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.713e-06/0.3102, allocations: 0 / 425 MB, free: 408 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003864/0.3106, allocations: 91.78 kB / 425.1 MB, free: 316 kB / 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.0009803/0.3116, allocations: 0.8941 MB / 426 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005943/0.3122, allocations: 310.7 kB / 426.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3122, allocations: 0.75 kB / 426.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003047/0.3125, allocations: 203.7 kB / 426.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.3128, allocations: 40.42 kB / 426.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003938/0.3167, allocations: 2.912 MB / 429.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.317, allocations: 0.7714 MB / 430.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.3172, allocations: 26.28 kB / 430.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.3173, allocations: 99.41 kB / 430.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3173, allocations: 0 / 430.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/0.3472, allocations: 6.057 MB / 436.4 MB, free: 4.949 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.57, allocations: 0.6562 kB / 436.4 MB, free: 4.949 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches