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.001669/0.001669, allocations: 112 kB / 17.06 MB, free: 5.82 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.001851/0.001851, allocations: 195.9 kB / 18 MB, free: 4.965 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.47/1.47, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 51.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2973, allocations: 49.44 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004545/0.3019, allocations: 2.872 MB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.3035, allocations: 0.7244 MB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.3036, allocations: 8 kB / 403.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.3038, allocations: 47.5 kB / 403.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.304, allocations: 91.19 kB / 404 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.3044, allocations: 99.77 kB / 404.1 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004232/0.3048, allocations: 374.4 kB / 404.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.3051, allocations: 119.2 kB / 404.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.3052, allocations: 139.5 kB / 404.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.3055, allocations: 147.4 kB / 404.9 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.3056, allocations: 32 kB / 404.9 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.924e-05/0.3057, allocations: 28 kB / 404.9 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.715e-05/0.3058, allocations: 71.77 kB / 405 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001785/0.306, allocations: 167.2 kB / 405.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004371/0.3065, allocations: 361.6 kB / 405.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.505e-05/0.3065, allocations: 0 / 405.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3065, allocations: 3.938 kB / 405.5 MB, free: 3.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.3065, allocations: 0 / 405.5 MB, free: 3.551 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.001125/0.3076, allocations: 0.6208 MB / 406.1 MB, free: 2.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.3077, allocations: 12.03 kB / 406.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.906e-05/0.3078, allocations: 66.72 kB / 406.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.806e-05/0.3079, allocations: 36.75 kB / 406.2 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006119/0.3085, allocations: 261.1 kB / 406.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.3086, allocations: 80.56 kB / 406.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.3086, allocations: 24.38 kB / 406.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005498/0.3092, allocations: 301.7 kB / 406.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3092, allocations: 0 / 406.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.3093, allocations: 12 kB / 406.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3093, allocations: 8 kB / 406.9 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003664/0.3097, allocations: 198.1 kB / 407.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.3115, allocations: 1.127 MB / 408.2 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/0.3119, allocations: 154.5 kB / 408.4 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.312, allocations: 84.83 kB / 408.5 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.312, allocations: 4 kB / 408.5 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.3123, allocations: 155.6 kB / 408.6 MB, free: 204 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.3123, allocations: 0 / 408.6 MB, free: 204 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001193/0.3135, allocations: 389.5 kB / 409 MB, free: 15.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.245e-05/0.3136, allocations: 106.8 kB / 409.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.3139, allocations: 229 kB / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.3139, allocations: 25.7 kB / 409.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.3141, allocations: 192.4 kB / 409.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.068e-05/0.3142, allocations: 71.48 kB / 409.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-05/0.3143, allocations: 57.7 kB / 409.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3144, allocations: 334.8 kB / 410 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.3146, allocations: 67.97 kB / 410.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.3148, allocations: 152.4 kB / 410.2 MB, free: 14.49 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.3151, allocations: 192.9 kB / 410.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3151, allocations: 0 / 410.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005357/0.3156, allocations: 272.4 kB / 410.7 MB, free: 14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3157, allocations: 4 kB / 410.7 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.3157, allocations: 4 kB / 410.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.316, allocations: 57.03 kB / 410.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.3162, allocations: 59.91 kB / 410.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.3178, allocations: 1.56 MB / 412.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.3181, allocations: 47.86 kB / 412.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.3182, allocations: 12 kB / 412.4 MB, free: 12.12 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.0001613/0.3183, allocations: 153.6 kB / 412.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.3184, allocations: 31.84 kB / 412.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.653e-05/0.3184, allocations: 30.17 kB / 412.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.3185, allocations: 0 / 412.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3185, allocations: 0 / 412.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3185, allocations: 0 / 412.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003412/0.3188, allocations: 325.3 kB / 412.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3188, allocations: 4 kB / 412.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.319, allocations: 35.98 kB / 413 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001915/0.3192, allocations: 48.81 kB / 413 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.3192, allocations: 4 kB / 413 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/0.3206, allocations: 1.43 MB / 414.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3206, allocations: 0 / 414.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006598/0.3213, allocations: 325.6 kB / 414.8 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.3214, allocations: 120.8 kB / 414.9 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.3214, allocations: 0 / 414.9 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.3216, allocations: 24.11 kB / 414.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.757e-05/0.3217, allocations: 27.95 kB / 414.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.3217, allocations: 8 kB / 414.9 MB, free: 9.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000158/0.3219, allocations: 164.5 kB / 415.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3219, allocations: 0 / 415.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003537/0.3223, allocations: 79.89 kB / 415.2 MB, free: 9.09 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.001103/0.3234, allocations: 0.8618 MB / 416 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005652/0.324, allocations: 298.8 kB / 416.3 MB, free: 7.895 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.324, allocations: 4.062 kB / 416.3 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002887/0.3243, allocations: 194.6 kB / 416.5 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.3246, allocations: 36.36 kB / 416.6 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.3285, allocations: 2.613 MB / 419.2 MB, free: 4.906 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.3289, allocations: 0.7558 MB / 419.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.329, allocations: 26.28 kB / 420 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.3291, allocations: 83.41 kB / 420 MB, free: 4.016 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3291, allocations: 0 / 420 MB, free: 4.016 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03481/0.3639, allocations: 5.629 MB / 425.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.17, allocations: 3.984 kB / 425.7 MB, free: 14.54 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