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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008633/0.0008633, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003017/0.003017, allocations: 159.7 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8447/0.8447, allocations: 177 MB / 204.9 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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=8000,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=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.674e-06/1.674e-06, allocations: 0 / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.745e-05/2.913e-05, allocations: 2.281 kB / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003755/0.003785, allocations: 2.709 MB / 328.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.005032, allocations: 0.7438 MB / 329.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.005181, allocations: 8 kB / 329.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.005341, allocations: 47.5 kB / 329.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004344/0.005776, allocations: 95.06 kB / 329.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000332/0.006108, allocations: 103.7 kB / 329.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003574/0.006465, allocations: 386.2 kB / 329.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.006654, allocations: 79.67 kB / 329.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002165/0.00687, allocations: 219.5 kB / 330.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.00704, allocations: 107.7 kB / 330.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.007096, allocations: 32 kB / 330.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.855e-05/0.007135, allocations: 28 kB / 330.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.914e-05/0.007194, allocations: 75.73 kB / 330.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.007307, allocations: 115.7 kB / 330.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003642/0.007671, allocations: 374.8 kB / 330.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.007673, allocations: 4 kB / 330.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.007675, allocations: 0 / 330.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.007681, allocations: 0 / 330.9 MB, free: 10.25 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.0008516/0.008532, allocations: 0.5261 MB / 331.4 MB, free: 9.688 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.008574, allocations: 15.98 kB / 331.4 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.77e-05/0.008652, allocations: 40.7 kB / 331.5 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.008979, allocations: 205.9 kB / 331.7 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.61e-05/0.009075, allocations: 132 kB / 331.8 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.631e-05/0.009121, allocations: 28.38 kB / 331.8 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000461/0.009582, allocations: 349.8 kB / 332.2 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.009595, allocations: 192 / 332.2 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.009626, allocations: 20.12 kB / 332.2 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.009637, allocations: 12 kB / 332.2 MB, free: 8.824 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.009943, allocations: 186.5 kB / 332.4 MB, free: 8.641 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.01124, allocations: 0.9694 MB / 333.3 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.01151, allocations: 146.6 kB / 333.5 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.01162, allocations: 72.88 kB / 333.6 MB, free: 7.383 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.01164, allocations: 4 kB / 333.6 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.01188, allocations: 205.2 kB / 333.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.01188, allocations: 0 / 333.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008064/0.01269, allocations: 317.5 kB / 334.1 MB, free: 6.824 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.027e-05/0.01276, allocations: 114.7 kB / 334.2 MB, free: 6.688 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.01294, allocations: 199.8 kB / 334.4 MB, free: 6.484 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.01296, allocations: 33.7 kB / 334.4 MB, free: 6.445 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.01307, allocations: 192.3 kB / 334.6 MB, free: 6.254 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.486e-05/0.01312, allocations: 63.44 kB / 334.7 MB, free: 6.191 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-05/0.01321, allocations: 61.64 kB / 334.7 MB, free: 6.125 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.0133, allocations: 326.8 kB / 335 MB, free: 5.797 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.01342, allocations: 67.97 kB / 335.1 MB, free: 5.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.0136, allocations: 197.7 kB / 335.3 MB, free: 5.492 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.01386, allocations: 192.1 kB / 335.5 MB, free: 5.281 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01386, allocations: 0 / 335.5 MB, free: 5.281 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004075/0.01427, allocations: 280.5 kB / 335.8 MB, free: 5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.01429, allocations: 4 kB / 335.8 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.0143, allocations: 7.984 kB / 335.8 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002306/0.01453, allocations: 44.83 kB / 335.8 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.01468, allocations: 60.12 kB / 335.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.01577, allocations: 1.445 MB / 337.3 MB, free: 3.336 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.01591, allocations: 31.83 kB / 337.4 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.01593, allocations: 12 kB / 337.4 MB, free: 3.293 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,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.0001328/0.01606, allocations: 153.9 kB / 337.5 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.01609, allocations: 19.91 kB / 337.5 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.01613, allocations: 21.97 kB / 337.6 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.01613, allocations: 3.938 kB / 337.6 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.01613, allocations: 0 / 337.6 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.01614, allocations: 7.984 kB / 337.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002176/0.01635, allocations: 217.2 kB / 337.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01636, allocations: 0 / 337.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.01649, allocations: 39.91 kB / 337.8 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001525/0.01664, allocations: 52.81 kB / 337.9 MB, free: 2.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.01666, allocations: 12 kB / 337.9 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006667/0.01732, allocations: 1.292 MB / 339.2 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.01732, allocations: 0 / 339.2 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003479/0.01767, allocations: 330.3 kB / 339.5 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.774e-05/0.01772, allocations: 31.86 kB / 339.5 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.01774, allocations: 7.938 kB / 339.5 MB, free: 0.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.763e-05/0.0178, allocations: 15.98 kB / 339.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.471e-05/0.01786, allocations: 36.09 kB / 339.6 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.01787, allocations: 8 kB / 339.6 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.56e-05/0.01794, allocations: 145.4 kB / 339.7 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01794, allocations: 0 / 339.7 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002069/0.01815, allocations: 83.84 kB / 339.8 MB, free: 0.6758 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.598e-05/0.01824, allocations: 107.2 kB / 339.9 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003291/0.01857, allocations: 279.9 kB / 340.2 MB, free: 284 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01857, allocations: 4.125 kB / 340.2 MB, free: 280 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.01871, allocations: 194.5 kB / 340.4 MB, free: 72 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001728/0.01888, allocations: 34.88 kB / 340.4 MB, free: 40 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008518/0.01973, allocations: 0.6176 MB / 341 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.26e-05/0.01982, allocations: 150.9 kB / 341.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.155e-05/0.01986, allocations: 24.5 kB / 341.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of SimCode: time 6.82e-07/0.01986, allocations: 0 / 341.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of Templates: time 0.003995/0.02386, allocations: 4.203 MB / 345.4 MB, free: 10.99 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.376947900280356]