Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001493/0.001493, allocations: 113.8 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002562/0.002562, allocations: 208 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 63.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3441, allocations: 50.53 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004779/0.349, allocations: 2.882 MB / 412.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.351, allocations: 0.7711 MB / 413.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003285/0.3513, allocations: 4 kB / 413.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.3517, allocations: 47.5 kB / 413.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002656/0.352, allocations: 95.12 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005572/0.3525, allocations: 107.8 kB / 413.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006528/0.3532, allocations: 370.4 kB / 414.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003207/0.3535, allocations: 127.1 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000188/0.3537, allocations: 135.6 kB / 414.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000258/0.354, allocations: 151.3 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.189e-05/0.3541, allocations: 32 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.83e-05/0.3541, allocations: 32 kB / 414.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.567e-05/0.3542, allocations: 75.73 kB / 414.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.3544, allocations: 167.2 kB / 414.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004833/0.3549, allocations: 363.8 kB / 415.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.222e-05/0.3549, allocations: 4 kB / 415.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3549, allocations: 3.938 kB / 415.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.355, allocations: 0 / 415.3 MB, free: 12.25 MB / 334.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.001315/0.3563, allocations: 0.6017 MB / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.3564, allocations: 8.031 kB / 415.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.3565, allocations: 36.56 kB / 415.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000609/0.3571, allocations: 264.4 kB / 416.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.662e-05/0.3572, allocations: 76.56 kB / 416.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.981e-05/0.3573, allocations: 36.38 kB / 416.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005426/0.3578, allocations: 297.9 kB / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.3579, allocations: 0 / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.3579, allocations: 12 kB / 416.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.3579, allocations: 8 kB / 416.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003393/0.3583, allocations: 190.1 kB / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.36, allocations: 1.123 MB / 417.9 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003299/0.3604, allocations: 158.5 kB / 418.1 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.3605, allocations: 80.83 kB / 418.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.3606, allocations: 0 / 418.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003363/0.3609, allocations: 165.2 kB / 418.3 MB, free: 9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.245e-06/0.3609, allocations: 0 / 418.3 MB, free: 9 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001177/0.3621, allocations: 383.1 kB / 418.7 MB, free: 8.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.222e-05/0.3622, allocations: 110.8 kB / 418.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002488/0.3625, allocations: 229 kB / 419 MB, free: 8.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.3625, allocations: 29.7 kB / 419 MB, free: 8.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.3627, allocations: 176.2 kB / 419.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.22e-05/0.3628, allocations: 71.08 kB / 419.3 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.3629, allocations: 61.61 kB / 419.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.363, allocations: 338.8 kB / 419.7 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.3632, allocations: 67.97 kB / 419.7 MB, free: 7.477 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.3633, allocations: 145.5 kB / 419.9 MB, free: 7.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.3636, allocations: 184.2 kB / 420.1 MB, free: 7.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.3636, allocations: 8 kB / 420.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004365/0.364, allocations: 276.4 kB / 420.3 MB, free: 6.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.3641, allocations: 7.938 kB / 420.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.3641, allocations: 4 kB / 420.3 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002981/0.3644, allocations: 53.03 kB / 420.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.3646, allocations: 55.91 kB / 420.5 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.3662, allocations: 1.572 MB / 422 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/0.3665, allocations: 31.83 kB / 422.1 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.3665, allocations: 8 kB / 422.1 MB, free: 4.941 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.0002105/0.3668, allocations: 157.7 kB / 422.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.3668, allocations: 23.72 kB / 422.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.202e-05/0.3669, allocations: 30.11 kB / 422.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3669, allocations: 4 kB / 422.3 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3669, allocations: 0 / 422.3 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.367, allocations: 112.8 kB / 422.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.367, allocations: 4 kB / 422.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.3672, allocations: 15.98 kB / 422.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.881e-05/0.3673, allocations: 27.91 kB / 422.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006283/0.368, allocations: 285.2 kB / 422.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005108/0.3685, allocations: 430.3 kB / 423.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001243/0.3686, allocations: 64.02 kB / 423.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.3688, allocations: 168.5 kB / 423.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of Backend: time 8.52e-07/0.3688, allocations: 0 / 423.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009068/0.3697, allocations: 321.9 kB / 423.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of SimCode: time 0.001494/0.3712, allocations: 1.015 MB / 424.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of Templates: time 0.007877/0.3791, allocations: 3.167 MB / 427.9 MB, free: 15.06 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches