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.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009116/0.0009115, allocations: 183.7 kB / 16.71 MB, free: 4.836 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.204/1.204, allocations: 225.7 MB / 243.2 MB, free: 8.5 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.0007037/0.0007037, allocations: 105.4 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002787, allocations: 8 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1959, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002014/0.198, allocations: 2.438 MB / 407 MB, free: 28.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.1991, allocations: 0.6871 MB / 407.7 MB, free: 28.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.1992, allocations: 4 kB / 407.7 MB, free: 28.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.1994, allocations: 44.25 kB / 407.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.1995, allocations: 73.19 kB / 407.8 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.1998, allocations: 95.38 kB / 407.9 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002357/0.2, allocations: 354.3 kB / 408.3 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.2002, allocations: 106.4 kB / 408.4 MB, free: 27.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.64e-05/0.2003, allocations: 115.5 kB / 408.5 MB, free: 27.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.2004, allocations: 131.4 kB / 408.6 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.608e-05/0.2005, allocations: 20 kB / 408.6 MB, free: 27.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.81e-05/0.2005, allocations: 16 kB / 408.6 MB, free: 27.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.247e-05/0.2006, allocations: 59.69 kB / 408.7 MB, free: 27.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.2007, allocations: 168.9 kB / 408.9 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.2009, allocations: 340.2 kB / 409.2 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.2009, allocations: 3.938 kB / 409.2 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2009, allocations: 4 kB / 409.2 MB, free: 26.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.2009, allocations: 0 / 409.2 MB, free: 26.68 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0007441/0.2017, allocations: 0.5628 MB / 409.8 MB, free: 26.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.2017, allocations: 8.031 kB / 409.8 MB, free: 26.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.911e-05/0.2018, allocations: 32.56 kB / 409.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002139/0.202, allocations: 264.4 kB / 410.1 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.365e-05/0.2021, allocations: 80.62 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.961e-05/0.2021, allocations: 28.38 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003736/0.2025, allocations: 297.9 kB / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.2025, allocations: 0 / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.59e-05/0.2025, allocations: 19.98 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.2025, allocations: 8 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.2028, allocations: 186.1 kB / 410.7 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.2041, allocations: 1.147 MB / 411.8 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.2044, allocations: 155.9 kB / 412 MB, free: 23.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.2045, allocations: 80.83 kB / 412 MB, free: 23.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.2045, allocations: 0 / 412 MB, free: 23.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.2048, allocations: 166.9 kB / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.132e-06/0.2048, allocations: 0 / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008817/0.2057, allocations: 397.8 kB / 412.6 MB, free: 23.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.2057, allocations: 102.8 kB / 412.7 MB, free: 22.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.2059, allocations: 229 kB / 412.9 MB, free: 22.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.2059, allocations: 29.7 kB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.345e-05/0.206, allocations: 180.2 kB / 413.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.6e-05/0.206, allocations: 71.08 kB / 413.2 MB, free: 22.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.102e-05/0.206, allocations: 8 kB / 413.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.627e-05/0.2061, allocations: 338.8 kB / 413.5 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.2062, allocations: 59.98 kB / 413.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.2063, allocations: 136.7 kB / 413.7 MB, free: 21.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.2065, allocations: 190.5 kB / 413.9 MB, free: 21.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2065, allocations: 4 kB / 413.9 MB, free: 21.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003493/0.2069, allocations: 271 kB / 414.2 MB, free: 21.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2069, allocations: 8 kB / 414.2 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.2069, allocations: 0 / 414.2 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002345/0.2072, allocations: 64.97 kB / 414.3 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.2074, allocations: 47.92 kB / 414.3 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008582/0.2082, allocations: 1.404 MB / 415.7 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.2085, allocations: 43.84 kB / 415.7 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.2085, allocations: 16 kB / 415.8 MB, free: 19.61 MB / 298.7 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,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (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 9.794e-05/0.2086, allocations: 149.7 kB / 415.9 MB, free: 19.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.2086, allocations: 27.59 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.432e-05/0.2087, allocations: 30.19 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2087, allocations: 0 / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.2087, allocations: 3.984 kB / 416 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.2087, allocations: 7.938 kB / 416 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.2089, allocations: 313.4 kB / 416.3 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2089, allocations: 4 kB / 416.3 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.2091, allocations: 31.92 kB / 416.3 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001575/0.2092, allocations: 52.81 kB / 416.4 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.2092, allocations: 4 kB / 416.4 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000694/0.2099, allocations: 1.327 MB / 417.7 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.21, allocations: 4.062 kB / 417.7 MB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000492/0.2105, allocations: 331.5 kB / 418 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.361e-05/0.2105, allocations: 116.8 kB / 418.1 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.2106, allocations: 4 kB / 418.1 MB, free: 16.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.2108, allocations: 24.05 kB / 418.2 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.076e-05/0.2108, allocations: 27.95 kB / 418.2 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.2109, allocations: 7.938 kB / 418.2 MB, free: 16.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.403e-05/0.211, allocations: 164.5 kB / 418.4 MB, free: 16.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.211, allocations: 0 / 418.4 MB, free: 16.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002807/0.2112, allocations: 75.84 kB / 418.4 MB, free: 16.7 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: 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 8.885e-05/0.2113, allocations: 126.1 kB / 418.6 MB, free: 16.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004014/0.2118, allocations: 282.5 kB / 418.8 MB, free: 16.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2118, allocations: 0 / 418.8 MB, free: 16.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.212, allocations: 194.5 kB / 419 MB, free: 16.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.2122, allocations: 40.8 kB / 419.1 MB, free: 16.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.2134, allocations: 0.8243 MB / 419.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000122/0.2136, allocations: 0.7638 MB / 420.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.937e-05/0.2137, allocations: 26.28 kB / 420.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.987e-05/0.2137, allocations: 23.38 kB / 420.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2137, allocations: 0 / 420.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of Templates: time 0.004756/0.2185, allocations: 2.751 MB / 423.5 MB, free: 11.61 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches