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.001283/0.001284, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001024/0.001024, allocations: 195 kB / 18 MB, free: 5.105 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.335/1.335, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 51.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3016, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004067/0.3057, allocations: 2.872 MB / 403.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.3068, allocations: 0.7244 MB / 403.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.307, allocations: 4 kB / 403.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001551/0.3071, allocations: 51.5 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.3073, allocations: 91.12 kB / 404 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.3076, allocations: 95.81 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003376/0.308, allocations: 374.4 kB / 404.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002328/0.3082, allocations: 119.3 kB / 404.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.3084, allocations: 139.5 kB / 404.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.3086, allocations: 151.4 kB / 404.8 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.3086, allocations: 31.94 kB / 404.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.621e-05/0.3087, allocations: 32 kB / 404.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.451e-05/0.3087, allocations: 71.75 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.3089, allocations: 171.2 kB / 405.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003517/0.3093, allocations: 352.5 kB / 405.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3093, allocations: 7.938 kB / 405.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3093, allocations: 0 / 405.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.3093, allocations: 0 / 405.5 MB, free: 3.504 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.0009882/0.3103, allocations: 0.6095 MB / 406.1 MB, free: 2.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3103, allocations: 8.031 kB / 406.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.833e-05/0.3104, allocations: 66.73 kB / 406.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.377e-05/0.3105, allocations: 32.56 kB / 406.2 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000396/0.3109, allocations: 264.9 kB / 406.5 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.669e-05/0.311, allocations: 72.62 kB / 406.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.311, allocations: 36.38 kB / 406.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/0.3115, allocations: 297.7 kB / 406.9 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3115, allocations: 3.938 kB / 406.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.3116, allocations: 12 kB / 406.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.3116, allocations: 8 kB / 406.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003247/0.3119, allocations: 186.2 kB / 407.1 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.3136, allocations: 1.131 MB / 408.2 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002996/0.3139, allocations: 158.6 kB / 408.4 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.314, allocations: 84.81 kB / 408.4 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.314, allocations: 0 / 408.4 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.3143, allocations: 159.1 kB / 408.6 MB, free: 172 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.3143, allocations: 0 / 408.6 MB, free: 172 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001045/0.3154, allocations: 393.4 kB / 409 MB, free: 15.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.6e-05/0.3155, allocations: 114.8 kB / 409.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.3157, allocations: 224.9 kB / 409.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.3157, allocations: 37.69 kB / 409.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3159, allocations: 176.2 kB / 409.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.448e-05/0.3159, allocations: 67.05 kB / 409.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.444e-05/0.316, allocations: 61.59 kB / 409.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3162, allocations: 334.8 kB / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.3163, allocations: 67.97 kB / 410 MB, free: 14.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.3165, allocations: 152.4 kB / 410.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.3168, allocations: 188.9 kB / 410.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3168, allocations: 0 / 410.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004201/0.3172, allocations: 284.4 kB / 410.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.3173, allocations: 4 kB / 410.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.3173, allocations: 0 / 410.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002698/0.3175, allocations: 52.81 kB / 410.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.3178, allocations: 56.11 kB / 410.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.319, allocations: 1.568 MB / 412.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.3192, allocations: 27.83 kB / 412.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.3193, allocations: 12 kB / 412.4 MB, free: 12.1 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.0001475/0.3194, allocations: 169.7 kB / 412.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.3195, allocations: 23.72 kB / 412.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.373e-05/0.3195, allocations: 22.19 kB / 412.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3195, allocations: 7.984 kB / 412.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3195, allocations: 3.984 kB / 412.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3195, allocations: 0 / 412.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002973/0.3198, allocations: 321.3 kB / 412.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3199, allocations: 0 / 412.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.32, allocations: 35.92 kB / 412.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001914/0.3202, allocations: 48.81 kB / 413 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.3203, allocations: 8 kB / 413 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0011/0.3214, allocations: 1.418 MB / 414.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3214, allocations: 0 / 414.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005796/0.322, allocations: 324.3 kB / 414.7 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.3221, allocations: 116.8 kB / 414.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.3221, allocations: 8 kB / 414.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.3223, allocations: 11.98 kB / 414.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.788e-05/0.3224, allocations: 31.95 kB / 414.9 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.3224, allocations: 12.06 kB / 414.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001322/0.3225, allocations: 160.5 kB / 415.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3225, allocations: 0 / 415.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003603/0.3229, allocations: 83.75 kB / 415.1 MB, free: 9.078 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.0008782/0.3238, allocations: 0.8693 MB / 416 MB, free: 8.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005376/0.3243, allocations: 297.8 kB / 416.3 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3244, allocations: 3.938 kB / 416.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002665/0.3246, allocations: 194.6 kB / 416.5 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.3249, allocations: 40.92 kB / 416.5 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00349/0.3284, allocations: 2.587 MB / 419.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.3287, allocations: 0.7597 MB / 419.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.729e-05/0.3288, allocations: 22.3 kB / 419.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.329, allocations: 79.41 kB / 420 MB, free: 4.023 MB / 334.1 MB Notification: Performance of SimCode: time 8.41e-07/0.329, allocations: 0 / 420 MB, free: 4.023 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.3551, allocations: 5.735 MB / 425.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.68/24.04, allocations: 15 kB / 425.7 MB, free: 14.43 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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