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.001042/0.001042, allocations: 84.25 kB / 22.21 MB, free: 2.285 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.001014/0.001014, allocations: 166.3 kB / 25.61 MB, free: 8.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.9052/0.9052, allocations: 177 MB / 205.9 MB, free: 4.445 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.123e-06/1.123e-06, allocations: 0 / 274.1 MB, free: 4.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.77e-05, allocations: 7.125 kB / 274.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00313/0.003158, allocations: 2.876 MB / 277 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.004426, allocations: 0.7483 MB / 277.8 MB, free: 0.625 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001821/0.004608, allocations: 11.94 kB / 277.8 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.004773, allocations: 52 kB / 277.8 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.00496, allocations: 90.25 kB / 277.9 MB, free: 488 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003391/0.005299, allocations: 115.6 kB / 278 MB, free: 372 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000337/0.005636, allocations: 382.3 kB / 278.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.005796, allocations: 83.58 kB / 278.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.006026, allocations: 223.5 kB / 278.7 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.006184, allocations: 107.7 kB / 278.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.006224, allocations: 35.94 kB / 278.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.344e-05/0.006257, allocations: 28 kB / 278.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.087e-05/0.006308, allocations: 71.8 kB / 278.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.433e-05/0.006393, allocations: 107.8 kB / 279 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002423/0.006635, allocations: 255 kB / 279.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.006639, allocations: 0 / 279.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.00664, allocations: 0 / 279.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.006645, allocations: 0 / 279.3 MB, free: 15.09 MB / 266.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.000693/0.007338, allocations: 0.6416 MB / 279.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.007372, allocations: 8.031 kB / 279.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.987e-05/0.007452, allocations: 60.7 kB / 280 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.007684, allocations: 216.1 kB / 280.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-05/0.007772, allocations: 128 kB / 280.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.661e-05/0.007808, allocations: 32.38 kB / 280.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.008086, allocations: 295 kB / 280.6 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.008097, allocations: 8.125 kB / 280.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.008116, allocations: 12.12 kB / 280.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.008125, allocations: 8 kB / 280.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.008238, allocations: 88.5 kB / 280.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009909/0.009228, allocations: 1.057 MB / 281.8 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.009404, allocations: 123 kB / 281.9 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.096e-05/0.009455, allocations: 46.06 kB / 282 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.009471, allocations: 8 kB / 282 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001725/0.009644, allocations: 194.7 kB / 282.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.009646, allocations: 0 / 282.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005151/0.01016, allocations: 233.3 kB / 282.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.0102, allocations: 110.7 kB / 282.5 MB, free: 11.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.01033, allocations: 250.7 kB / 282.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.01035, allocations: 29.7 kB / 282.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.01047, allocations: 235.1 kB / 283 MB, free: 11.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.357e-05/0.01052, allocations: 79.39 kB / 283.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.543e-05/0.01058, allocations: 67.22 kB / 283.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.0107, allocations: 0.5001 MB / 283.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.729e-05/0.01074, allocations: 31.84 kB / 283.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.01092, allocations: 189.9 kB / 283.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.01105, allocations: 160.2 kB / 284 MB, free: 9.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01105, allocations: 0 / 284 MB, free: 9.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002306/0.01128, allocations: 223.2 kB / 284.3 MB, free: 9.703 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.01129, allocations: 4 kB / 284.3 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.0113, allocations: 4 kB / 284.3 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001479/0.01145, allocations: 47.86 kB / 284.3 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.01157, allocations: 47.92 kB / 284.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.01261, allocations: 1.973 MB / 286.3 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.01273, allocations: 31.83 kB / 286.4 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.01275, allocations: 12 kB / 286.4 MB, free: 7.469 MB / 266.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.0001055/0.01285, allocations: 176.5 kB / 286.5 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.59e-05/0.01288, allocations: 19.91 kB / 286.6 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.01291, allocations: 29.95 kB / 286.6 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.01291, allocations: 4.062 kB / 286.6 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.01291, allocations: 4 kB / 286.6 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.01292, allocations: 3.938 kB / 286.6 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.01309, allocations: 181 kB / 286.8 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.01309, allocations: 0 / 286.8 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.812e-05/0.01318, allocations: 31.98 kB / 286.8 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.828e-05/0.01328, allocations: 43.64 kB / 286.9 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.01329, allocations: 8 kB / 286.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007031/0.01399, allocations: 1.729 MB / 288.6 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.01399, allocations: 0 / 288.6 MB, free: 5.094 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.01427, allocations: 247.9 kB / 288.8 MB, free: 4.824 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.61e-05/0.01432, allocations: 47.77 kB / 288.9 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.01434, allocations: 0 / 288.9 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.137e-05/0.01441, allocations: 23.98 kB / 288.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.865e-05/0.01447, allocations: 23.95 kB / 288.9 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.01448, allocations: 11.98 kB / 288.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003446/0.01483, allocations: 169.4 kB / 289.1 MB, free: 4.555 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01483, allocations: 3.938 kB / 289.1 MB, free: 4.551 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002597/0.01509, allocations: 83.84 kB / 289.2 MB, free: 4.469 MB / 266.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.0001092/0.0152, allocations: 110.6 kB / 289.3 MB, free: 4.355 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000294/0.01549, allocations: 299.8 kB / 289.6 MB, free: 4.047 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.01549, allocations: 4 kB / 289.6 MB, free: 4.043 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.01564, allocations: 233.4 kB / 289.8 MB, free: 3.793 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.01583, allocations: 42.16 kB / 289.9 MB, free: 3.754 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009646/0.0168, allocations: 0.5651 MB / 290.4 MB, free: 3.156 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.53e-05/0.01684, allocations: 92.27 kB / 290.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.457e-05/0.01691, allocations: 21.92 kB / 290.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.01702, allocations: 118.2 kB / 290.7 MB, free: 2.906 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01702, allocations: 0 / 290.7 MB, free: 2.906 MB / 266.7 MB Notification: Performance of Templates: time 0.005687/0.0227, allocations: 3.19 MB / 293.8 MB, free: 15.77 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8295074510388076]