Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001344/0.001344, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.518/1.518, allocations: 230.4 MB / 251.1 MB, free: 8.449 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 67.83 kB / 369 MB, free: 6.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2878, allocations: 53.32 MB / 422.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004377/0.2922, allocations: 2.902 MB / 425.2 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.2936, allocations: 0.7633 MB / 425.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.2938, allocations: 8 kB / 426 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001588/0.2939, allocations: 47.5 kB / 426 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001832/0.2941, allocations: 91.19 kB / 426.1 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.2944, allocations: 103.8 kB / 426.2 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004314/0.2949, allocations: 374.4 kB / 426.6 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.2951, allocations: 87.28 kB / 426.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.2953, allocations: 135.5 kB / 426.8 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.2955, allocations: 155.3 kB / 426.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.514e-05/0.2956, allocations: 32 kB / 427 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.205e-05/0.2956, allocations: 32 kB / 427 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.408e-05/0.2957, allocations: 67.81 kB / 427.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.2959, allocations: 167.2 kB / 427.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.2963, allocations: 370 kB / 427.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2963, allocations: 0 / 427.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2963, allocations: 0 / 427.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.2963, allocations: 0 / 427.6 MB, free: 2.512 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.001096/0.2974, allocations: 0.616 MB / 428.2 MB, free: 1.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.2974, allocations: 15.97 kB / 428.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.586e-05/0.2975, allocations: 36.7 kB / 428.2 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004289/0.2979, allocations: 273 kB / 428.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.431e-05/0.298, allocations: 72.62 kB / 428.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/0.2981, allocations: 40.34 kB / 428.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.2986, allocations: 297.9 kB / 428.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.2986, allocations: 0 / 428.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.228e-05/0.2987, allocations: 12 kB / 428.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.2987, allocations: 8 kB / 428.9 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003552/0.299, allocations: 194.1 kB / 429.1 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.3008, allocations: 1.116 MB / 430.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.3011, allocations: 146.5 kB / 430.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.3012, allocations: 76.83 kB / 430.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.3013, allocations: 4 kB / 430.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002707/0.3015, allocations: 149.8 kB / 430.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.3015, allocations: 4 kB / 430.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001049/0.3026, allocations: 389.6 kB / 431 MB, free: 14.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.3027, allocations: 102.8 kB / 431.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.3029, allocations: 233 kB / 431.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.3029, allocations: 37.64 kB / 431.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.3031, allocations: 176.5 kB / 431.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.863e-05/0.3031, allocations: 75.42 kB / 431.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.501e-05/0.3032, allocations: 57.69 kB / 431.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.3034, allocations: 330.8 kB / 432 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.3035, allocations: 67.97 kB / 432 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.3037, allocations: 150.1 kB / 432.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.304, allocations: 196.1 kB / 432.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.304, allocations: 0 / 432.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004598/0.3045, allocations: 272.5 kB / 432.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.3045, allocations: 8.219 kB / 432.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.3045, allocations: 4 kB / 432.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002517/0.3048, allocations: 48.81 kB / 432.7 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.305, allocations: 55.92 kB / 432.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/0.3065, allocations: 1.576 MB / 434.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.3067, allocations: 43.77 kB / 434.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.3067, allocations: 8 kB / 434.4 MB, free: 11.18 MB / 350.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.0001576/0.3069, allocations: 153.7 kB / 434.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.3069, allocations: 23.86 kB / 434.6 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.846e-05/0.307, allocations: 26.25 kB / 434.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.307, allocations: 4 kB / 434.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.307, allocations: 3.984 kB / 434.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.307, allocations: 3.938 kB / 434.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003485/0.3073, allocations: 321.3 kB / 434.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.3073, allocations: 4 kB / 434.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.3075, allocations: 31.98 kB / 435 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001968/0.3077, allocations: 52.81 kB / 435 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.3077, allocations: 4 kB / 435 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.309, allocations: 1.422 MB / 436.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.309, allocations: 0 / 436.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006569/0.3097, allocations: 328.3 kB / 436.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.3098, allocations: 116.9 kB / 436.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.3098, allocations: 4 kB / 436.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.31, allocations: 15.98 kB / 436.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.65e-05/0.3101, allocations: 35.89 kB / 436.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.3101, allocations: 4 kB / 436.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.3103, allocations: 164.5 kB / 437.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3103, allocations: 4.062 kB / 437.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003656/0.3106, allocations: 83.78 kB / 437.2 MB, free: 8.164 MB / 350.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.0001336/0.3108, allocations: 111.2 kB / 437.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005372/0.3113, allocations: 278.4 kB / 437.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3113, allocations: 0 / 437.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003027/0.3116, allocations: 191 kB / 437.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.3119, allocations: 38.42 kB / 437.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.3134, allocations: 0.6621 MB / 438.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.3138, allocations: 0.7597 MB / 439.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.174e-05/0.3139, allocations: 26.28 kB / 439.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.168e-05/0.314, allocations: 23.42 kB / 439.2 MB, free: 6.004 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.314, allocations: 0 / 439.2 MB, free: 6.004 MB / 350.1 MB Notification: Performance of Templates: time 0.007361/0.3213, allocations: 3.175 MB / 442.4 MB, free: 2.859 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches