Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.001528/0.001528, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001695/0.001695, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 47.94 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2694, allocations: 49.45 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004385/0.2739, allocations: 2.874 MB / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.2752, allocations: 0.7167 MB / 403.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.2754, allocations: 7.938 kB / 403.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.2755, allocations: 55.44 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001727/0.2758, allocations: 87.19 kB / 404 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.2761, allocations: 103.8 kB / 404.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003478/0.2765, allocations: 378.4 kB / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002373/0.2767, allocations: 111.3 kB / 404.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.2769, allocations: 143.4 kB / 404.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.2771, allocations: 143.4 kB / 404.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.714e-05/0.2771, allocations: 32 kB / 404.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.559e-05/0.2772, allocations: 32 kB / 404.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.102e-05/0.2772, allocations: 79.73 kB / 405 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.2774, allocations: 163.2 kB / 405.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003661/0.2778, allocations: 369.5 kB / 405.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2778, allocations: 0 / 405.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2778, allocations: 0 / 405.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2778, allocations: 0 / 405.5 MB, free: 3.496 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009891/0.2788, allocations: 0.6131 MB / 406.1 MB, free: 2.836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.2788, allocations: 12.03 kB / 406.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.622e-05/0.2789, allocations: 66.72 kB / 406.2 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.291e-05/0.279, allocations: 36.75 kB / 406.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003592/0.2794, allocations: 261 kB / 406.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.224e-05/0.2794, allocations: 80.61 kB / 406.6 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.556e-05/0.2795, allocations: 28.38 kB / 406.6 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004556/0.28, allocations: 301.6 kB / 406.9 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.28, allocations: 3.984 kB / 406.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.897e-05/0.28, allocations: 16 kB / 406.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.28, allocations: 8 kB / 406.9 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003143/0.2803, allocations: 190.1 kB / 407.1 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.2819, allocations: 1.127 MB / 408.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002798/0.2822, allocations: 146.6 kB / 408.4 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.2824, allocations: 80.83 kB / 408.5 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.2824, allocations: 11.92 kB / 408.5 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002493/0.2827, allocations: 163.6 kB / 408.6 MB, free: 148 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.2827, allocations: 0 / 408.6 MB, free: 148 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001034/0.2837, allocations: 389.5 kB / 409 MB, free: 15.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.567e-05/0.2838, allocations: 102.8 kB / 409.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.284, allocations: 229 kB / 409.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.284, allocations: 29.7 kB / 409.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.2842, allocations: 188.4 kB / 409.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/0.2842, allocations: 71.47 kB / 409.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.579e-05/0.2843, allocations: 53.7 kB / 409.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.2845, allocations: 342.8 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.2846, allocations: 71.91 kB / 410.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.2848, allocations: 144.4 kB / 410.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002587/0.285, allocations: 196.9 kB / 410.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2851, allocations: 0 / 410.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004089/0.2855, allocations: 272.5 kB / 410.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.2855, allocations: 4 kB / 410.7 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.2855, allocations: 4 kB / 410.7 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002753/0.2858, allocations: 57.03 kB / 410.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002076/0.286, allocations: 51.92 kB / 410.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.2874, allocations: 1.568 MB / 412.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002349/0.2876, allocations: 43.77 kB / 412.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.2877, allocations: 12 kB / 412.4 MB, free: 12.07 MB / 334.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.0001602/0.2878, allocations: 157.7 kB / 412.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.908e-05/0.2879, allocations: 23.86 kB / 412.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.476e-05/0.2879, allocations: 34.17 kB / 412.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.288, allocations: 0 / 412.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.288, allocations: 0 / 412.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.288, allocations: 0 / 412.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003252/0.2883, allocations: 317.4 kB / 412.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2883, allocations: 0 / 412.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.2885, allocations: 39.91 kB / 413 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001979/0.2887, allocations: 52.83 kB / 413 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.2887, allocations: 7.984 kB / 413 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.2898, allocations: 1.422 MB / 414.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2899, allocations: 0 / 414.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005943/0.2905, allocations: 328.8 kB / 414.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.2906, allocations: 120.8 kB / 414.9 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.2906, allocations: 0 / 414.9 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.2908, allocations: 19.98 kB / 414.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.953e-05/0.2909, allocations: 31.89 kB / 414.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.2909, allocations: 16.05 kB / 415 MB, free: 9.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001292/0.291, allocations: 160.5 kB / 415.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.291, allocations: 0 / 415.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.2914, allocations: 79.89 kB / 415.2 MB, free: 9.043 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: 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.0008944/0.2923, allocations: 0.8629 MB / 416.1 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005888/0.2929, allocations: 294.4 kB / 416.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2929, allocations: 0 / 416.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.2932, allocations: 197.4 kB / 416.5 MB, free: 7.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.2935, allocations: 48.83 kB / 416.6 MB, free: 7.598 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003294/0.2968, allocations: 2.594 MB / 419.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.2971, allocations: 0.7558 MB / 419.9 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.093e-05/0.2972, allocations: 26.28 kB / 420 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.2973, allocations: 83.41 kB / 420 MB, free: 3.977 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2973, allocations: 0 / 420 MB, free: 3.977 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.3231, allocations: 5.64 MB / 425.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.39, allocations: 7.969 kB / 425.7 MB, free: 14.48 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches