Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 186.4 kB / 16.71 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 225.7 MB / 243.2 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007877/0.0007878, allocations: 100.3 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002463/0.0002461, allocations: 11.94 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2001, allocations: 50.41 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002198/0.2023, allocations: 2.683 MB / 407.3 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008125/0.2032, allocations: 0.7065 MB / 408 MB, free: 27.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.2033, allocations: 4 kB / 408 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.2034, allocations: 48.47 kB / 408 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.2036, allocations: 89.16 kB / 408.1 MB, free: 27.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.2039, allocations: 92.91 kB / 408.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000257/0.2041, allocations: 402.2 kB / 408.6 MB, free: 27.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.2044, allocations: 123.7 kB / 408.7 MB, free: 27.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.2045, allocations: 139.4 kB / 408.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.2047, allocations: 159.2 kB / 409 MB, free: 26.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/0.2047, allocations: 16 kB / 409 MB, free: 26.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.437e-05/0.2048, allocations: 20 kB / 409 MB, free: 26.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.85e-05/0.2048, allocations: 67.75 kB / 409.1 MB, free: 26.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.205, allocations: 192.8 kB / 409.3 MB, free: 26.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002426/0.2052, allocations: 392 kB / 409.7 MB, free: 26.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2052, allocations: 0 / 409.7 MB, free: 26.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2052, allocations: 0 / 409.7 MB, free: 26.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.2052, allocations: 0 / 409.7 MB, free: 26.18 MB / 298.7 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.0007491/0.206, allocations: 0.5965 MB / 410.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.206, allocations: 16.02 kB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.972e-05/0.2061, allocations: 44.41 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.2063, allocations: 277.2 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-05/0.2064, allocations: 84.61 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.324e-05/0.2064, allocations: 32.38 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004337/0.2069, allocations: 338.8 kB / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.2069, allocations: 0 / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/0.2069, allocations: 16 kB / 411.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.207, allocations: 8 kB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003368/0.2073, allocations: 222.5 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.2087, allocations: 1.372 MB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.209, allocations: 171.4 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001294/0.2091, allocations: 92.77 kB / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.2092, allocations: 4 kB / 412.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002603/0.2094, allocations: 162.9 kB / 413.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.253e-06/0.2094, allocations: 0 / 413.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009264/0.2104, allocations: 422 kB / 413.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.2104, allocations: 114.7 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.2106, allocations: 258.7 kB / 413.9 MB, free: 21.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.2106, allocations: 29.7 kB / 413.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.313e-05/0.2107, allocations: 207.8 kB / 414.1 MB, free: 21.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.581e-05/0.2108, allocations: 71.08 kB / 414.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.15e-05/0.2108, allocations: 8 kB / 414.2 MB, free: 21.37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.537e-05/0.2108, allocations: 338.8 kB / 414.5 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.211, allocations: 76.62 kB / 414.6 MB, free: 20.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.2111, allocations: 177.5 kB / 414.7 MB, free: 20.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/0.2114, allocations: 238.1 kB / 415 MB, free: 20.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2114, allocations: 7.938 kB / 415 MB, free: 20.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005298/0.2119, allocations: 354.6 kB / 415.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.2119, allocations: 4 kB / 415.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.212, allocations: 7.984 kB / 415.3 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/0.2122, allocations: 56.91 kB / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000231/0.2125, allocations: 71.91 kB / 415.5 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008582/0.2133, allocations: 1.404 MB / 416.9 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.2136, allocations: 55.61 kB / 416.9 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.2136, allocations: 8 kB / 416.9 MB, free: 18.38 MB / 298.7 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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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.0001127/0.2137, allocations: 149.9 kB / 417.1 MB, free: 18.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.2137, allocations: 27.72 kB / 417.1 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.682e-05/0.2138, allocations: 30.17 kB / 417.1 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2138, allocations: 4 kB / 417.1 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2138, allocations: 3.938 kB / 417.1 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.2138, allocations: 3.984 kB / 417.1 MB, free: 18.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.214, allocations: 337.3 kB / 417.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2141, allocations: 0 / 417.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.2142, allocations: 39.97 kB / 417.5 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001575/0.2144, allocations: 56.75 kB / 417.6 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.2144, allocations: 4 kB / 417.6 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006807/0.2151, allocations: 1.331 MB / 418.9 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2151, allocations: 0 / 418.9 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005583/0.2157, allocations: 356.9 kB / 419.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.2158, allocations: 116.8 kB / 419.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.2158, allocations: 12.06 kB / 419.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.216, allocations: 23.98 kB / 419.4 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.537e-05/0.2161, allocations: 31.94 kB / 419.4 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.2161, allocations: 4 kB / 419.4 MB, free: 15.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001205/0.2162, allocations: 182 kB / 419.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2162, allocations: 0 / 419.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003095/0.2165, allocations: 91.75 kB / 419.7 MB, free: 15.37 MB / 298.7 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 9.164e-05/0.2166, allocations: 111.2 kB / 419.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004613/0.2171, allocations: 307 kB / 420.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2171, allocations: 4.125 kB / 420.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002277/0.2173, allocations: 206.5 kB / 420.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.2176, allocations: 36.36 kB / 420.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.2187, allocations: 0.8677 MB / 421.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.2189, allocations: 0.7677 MB / 422 MB, free: 12.99 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.219, allocations: 34.27 kB / 422 MB, free: 12.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.497e-05/0.2191, allocations: 19.44 kB / 422 MB, free: 12.94 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2191, allocations: 0 / 422 MB, free: 12.94 MB / 298.7 MB Notification: Performance of Templates: time 0.00493/0.224, allocations: 2.783 MB / 424.8 MB, free: 10.16 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches