Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 174.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.6 MB / 223.7 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009562/0.0009564, allocations: 95.73 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002627, allocations: 8 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2955, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002438/0.298, allocations: 2.407 MB / 379 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00091/0.2989, allocations: 0.7371 MB / 379.7 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.299, allocations: 4.344 kB / 379.7 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.2992, allocations: 41.03 kB / 379.8 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.2993, allocations: 77.59 kB / 379.9 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002766/0.2996, allocations: 93.11 kB / 380 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003128/0.2999, allocations: 354.8 kB / 380.3 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002058/0.3001, allocations: 97.7 kB / 380.4 MB, free: 42.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.3003, allocations: 115.8 kB / 380.5 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.3004, allocations: 137.8 kB / 380.6 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.299e-05/0.3005, allocations: 16.47 kB / 380.7 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.025e-05/0.3005, allocations: 19.88 kB / 380.7 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.601e-05/0.3006, allocations: 53.14 kB / 380.7 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.3008, allocations: 169.9 kB / 380.9 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.3011, allocations: 342.5 kB / 381.2 MB, free: 42.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.3011, allocations: 1.375 kB / 381.2 MB, free: 42.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3011, allocations: 0 / 381.2 MB, free: 42.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.3011, allocations: 0 / 381.2 MB, free: 42.08 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.0008512/0.302, allocations: 0.5571 MB / 381.8 MB, free: 41.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.302, allocations: 13.44 kB / 381.8 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.085e-05/0.3021, allocations: 38.72 kB / 381.8 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002817/0.3024, allocations: 257.3 kB / 382.1 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.805e-05/0.3025, allocations: 81.39 kB / 382.2 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/0.3026, allocations: 31.72 kB / 382.2 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/0.303, allocations: 304 kB / 382.5 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.3031, allocations: 4 kB / 382.5 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.3031, allocations: 11.19 kB / 382.5 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.3031, allocations: 6.938 kB / 382.5 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003415/0.3035, allocations: 188 kB / 382.7 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.3049, allocations: 1.145 MB / 383.8 MB, free: 39.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000296/0.3052, allocations: 164.9 kB / 384 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.3054, allocations: 79.67 kB / 384.1 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.3054, allocations: 1.594 kB / 384.1 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.3057, allocations: 149.6 kB / 384.2 MB, free: 39.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.3057, allocations: 1.094 kB / 384.2 MB, free: 39.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.000949/0.3066, allocations: 393.5 kB / 384.6 MB, free: 39.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.3067, allocations: 114.1 kB / 384.7 MB, free: 39.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.3069, allocations: 229.5 kB / 385 MB, free: 39.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.3069, allocations: 35.92 kB / 385 MB, free: 39.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.972e-05/0.307, allocations: 175 kB / 385.2 MB, free: 38.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.629e-05/0.3071, allocations: 72.3 kB / 385.2 MB, free: 38.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.3071, allocations: 5.281 kB / 385.2 MB, free: 38.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.82e-05/0.3072, allocations: 332.1 kB / 385.6 MB, free: 38.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.3073, allocations: 67.66 kB / 385.6 MB, free: 38.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.3075, allocations: 150 kB / 385.8 MB, free: 38.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.3077, allocations: 181.6 kB / 386 MB, free: 38.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3077, allocations: 0 / 386 MB, free: 38.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000399/0.3081, allocations: 278.7 kB / 386.2 MB, free: 38.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3082, allocations: 9.625 kB / 386.2 MB, free: 38.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3082, allocations: 2.469 kB / 386.2 MB, free: 38.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002511/0.3084, allocations: 52.53 kB / 386.3 MB, free: 38.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.3086, allocations: 51.55 kB / 386.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009507/0.3096, allocations: 1.417 MB / 387.8 MB, free: 36.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.3098, allocations: 37.92 kB / 387.8 MB, free: 36.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.3098, allocations: 8.656 kB / 387.8 MB, free: 36.54 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 0.000128/0.31, allocations: 148.4 kB / 387.9 MB, free: 36.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.66e-05/0.31, allocations: 31.77 kB / 388 MB, free: 36.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.086e-05/0.3101, allocations: 26.91 kB / 388 MB, free: 36.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.3101, allocations: 2.25 kB / 388 MB, free: 36.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.3101, allocations: 0 / 388 MB, free: 36.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3101, allocations: 4.891 kB / 388 MB, free: 36.35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.3104, allocations: 316.6 kB / 388.3 MB, free: 36.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3104, allocations: 5.125 kB / 388.3 MB, free: 36.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.3105, allocations: 37.48 kB / 388.4 MB, free: 36.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001729/0.3107, allocations: 54.53 kB / 388.4 MB, free: 36.01 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.3108, allocations: 5.125 kB / 388.4 MB, free: 36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008073/0.3116, allocations: 1.325 MB / 389.7 MB, free: 34.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3116, allocations: 0 / 389.7 MB, free: 34.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005039/0.3121, allocations: 337.8 kB / 390.1 MB, free: 34.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.3122, allocations: 112.8 kB / 390.2 MB, free: 34.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.302e-05/0.3122, allocations: 7.984 kB / 390.2 MB, free: 34.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.3124, allocations: 23.98 kB / 390.2 MB, free: 34.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.877e-05/0.3125, allocations: 31.95 kB / 390.2 MB, free: 34.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.3125, allocations: 11.94 kB / 390.3 MB, free: 34.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001022/0.3126, allocations: 160.5 kB / 390.4 MB, free: 33.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3126, allocations: 0 / 390.4 MB, free: 33.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002987/0.3129, allocations: 79.84 kB / 390.5 MB, free: 33.85 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 0.0001226/0.313, allocations: 111.2 kB / 390.6 MB, free: 33.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004238/0.3135, allocations: 286.9 kB / 390.9 MB, free: 33.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3135, allocations: 0 / 390.9 MB, free: 33.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002032/0.3137, allocations: 190.6 kB / 391.1 MB, free: 33.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.314, allocations: 40.3 kB / 391.1 MB, free: 33.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.3153, allocations: 0.8294 MB / 391.9 MB, free: 32.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.3155, allocations: 0.7599 MB / 392.7 MB, free: 31.57 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.141e-05/0.3156, allocations: 18.3 kB / 392.7 MB, free: 31.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.377e-05/0.3156, allocations: 19.44 kB / 392.7 MB, free: 31.53 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3156, allocations: 4 kB / 392.7 MB, free: 31.52 MB / 298.7 MB Notification: Performance of Templates: time 0.00506/0.3207, allocations: 2.764 MB / 395.5 MB, free: 28.77 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches