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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 112.3 kB / 17.06 MB, free: 5.965 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.001375/0.001376, allocations: 192 kB / 18 MB, free: 5.055 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.541/1.541, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 43.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3494, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004263/0.3537, allocations: 2.866 MB / 403.6 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.3552, allocations: 0.7245 MB / 404.3 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.3553, allocations: 11.88 kB / 404.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.3555, allocations: 55.5 kB / 404.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.3557, allocations: 79.2 kB / 404.5 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003596/0.3561, allocations: 107.8 kB / 404.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000376/0.3564, allocations: 366.4 kB / 404.9 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.3567, allocations: 119.2 kB / 405.1 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.3568, allocations: 143.4 kB / 405.2 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.3571, allocations: 147.4 kB / 405.3 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.035e-05/0.3571, allocations: 36 kB / 405.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.503e-05/0.3572, allocations: 28 kB / 405.4 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.472e-05/0.3573, allocations: 71.75 kB / 405.5 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.3574, allocations: 167.2 kB / 405.6 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000389/0.3578, allocations: 362.4 kB / 406 MB, free: 3.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3578, allocations: 0 / 406 MB, free: 3.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3578, allocations: 0 / 406 MB, free: 3.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.3579, allocations: 0 / 406 MB, free: 3.605 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.001077/0.3589, allocations: 0.6208 MB / 406.6 MB, free: 2.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.359, allocations: 12.03 kB / 406.6 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.145e-05/0.3591, allocations: 32.75 kB / 406.6 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.3595, allocations: 269 kB / 406.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.293e-05/0.3596, allocations: 76.62 kB / 407 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.3597, allocations: 32.38 kB / 407 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005011/0.3602, allocations: 301.8 kB / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.3602, allocations: 0 / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.225e-05/0.3602, allocations: 12 kB / 407.3 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.3602, allocations: 7.984 kB / 407.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.3606, allocations: 190.2 kB / 407.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.3623, allocations: 1.135 MB / 408.7 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003466/0.3626, allocations: 153.6 kB / 408.8 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.3628, allocations: 84.81 kB / 408.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.3628, allocations: 0 / 408.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003147/0.3631, allocations: 171.4 kB / 409.1 MB, free: 320 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.152e-06/0.3631, allocations: 0 / 409.1 MB, free: 320 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001063/0.3642, allocations: 389.6 kB / 409.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.3643, allocations: 106.8 kB / 409.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002119/0.3645, allocations: 225 kB / 409.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.3646, allocations: 33.7 kB / 409.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.3647, allocations: 188.4 kB / 410 MB, free: 15.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.838e-05/0.3647, allocations: 67.42 kB / 410 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.593e-05/0.3648, allocations: 53.7 kB / 410.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.365, allocations: 342.8 kB / 410.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.3651, allocations: 67.97 kB / 410.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.3653, allocations: 148.4 kB / 410.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.3655, allocations: 188.9 kB / 410.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3655, allocations: 0 / 410.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004102/0.366, allocations: 276.5 kB / 411.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.366, allocations: 11.94 kB / 411.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.366, allocations: 0 / 411.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002762/0.3663, allocations: 61.03 kB / 411.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.3665, allocations: 51.91 kB / 411.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.3678, allocations: 1.564 MB / 412.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.368, allocations: 39.8 kB / 412.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.532e-05/0.3681, allocations: 12 kB / 412.8 MB, free: 12.24 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.0001567/0.3682, allocations: 157.7 kB / 413 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.822e-05/0.3683, allocations: 23.86 kB / 413 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.18e-05/0.3683, allocations: 30.17 kB / 413 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.3683, allocations: 4 kB / 413 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.3683, allocations: 0 / 413 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3683, allocations: 0 / 413 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004114/0.3688, allocations: 325.3 kB / 413.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3688, allocations: 0 / 413.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.3689, allocations: 35.92 kB / 413.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001757/0.3691, allocations: 52.81 kB / 413.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.3691, allocations: 4 kB / 413.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.3702, allocations: 1.422 MB / 414.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3702, allocations: 0 / 414.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000602/0.3708, allocations: 336.4 kB / 415.2 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.47e-05/0.3709, allocations: 108.9 kB / 415.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.628e-05/0.371, allocations: 11.98 kB / 415.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.3712, allocations: 15.98 kB / 415.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.363e-05/0.3713, allocations: 31.95 kB / 415.4 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.3713, allocations: 12 kB / 415.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001363/0.3714, allocations: 156.5 kB / 415.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3714, allocations: 0 / 415.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003489/0.3718, allocations: 87.81 kB / 415.6 MB, free: 9.215 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.0001449/0.3719, allocations: 103.2 kB / 415.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005389/0.3725, allocations: 294.8 kB / 416 MB, free: 8.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3725, allocations: 0 / 416 MB, free: 8.805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000272/0.3728, allocations: 202.5 kB / 416.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.3731, allocations: 32.36 kB / 416.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.3746, allocations: 0.6546 MB / 416.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.3749, allocations: 0.7557 MB / 417.6 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.817e-05/0.375, allocations: 26.28 kB / 417.7 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.047e-05/0.375, allocations: 19.44 kB / 417.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3751, allocations: 0 / 417.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of Templates: time 0.006394/0.3814, allocations: 3.104 MB / 420.8 MB, free: 3.977 MB / 334.1 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","/var/lib/jenkins/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