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.001404/0.001404, allocations: 105.4 kB / 19.81 MB, free: 2.516 MB / 14.72 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.001731/0.001731, allocations: 215.5 kB / 23 MB, free: 5.609 MB / 14.72 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 1.464/1.464, allocations: 230.2 MB / 256.2 MB, free: 8.562 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001854/0.001854, allocations: 67.89 kB / 376.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2988, allocations: 53.32 MB / 429.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004455/0.3032, allocations: 2.909 MB / 432.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.3046, allocations: 0.7712 MB / 433.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.3048, allocations: 4 kB / 433.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.3049, allocations: 51.5 kB / 433.5 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.3051, allocations: 95.12 kB / 433.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003155/0.3054, allocations: 111.7 kB / 433.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004183/0.3058, allocations: 366.5 kB / 434.1 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.306, allocations: 95.2 kB / 434.2 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000163/0.3062, allocations: 135.6 kB / 434.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.3064, allocations: 155.3 kB / 434.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.04e-05/0.3065, allocations: 32 kB / 434.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.891e-05/0.3065, allocations: 32 kB / 434.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.653e-05/0.3066, allocations: 75.73 kB / 434.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.3068, allocations: 159.3 kB / 434.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004255/0.3072, allocations: 367.7 kB / 435.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3072, allocations: 4 kB / 435.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3072, allocations: 0 / 435.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.3072, allocations: 0 / 435.1 MB, free: 2.191 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.001065/0.3083, allocations: 0.6092 MB / 435.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.3083, allocations: 8.031 kB / 435.8 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.24e-05/0.3084, allocations: 40.7 kB / 435.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.3088, allocations: 272.5 kB / 436.1 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-05/0.3089, allocations: 76.62 kB / 436.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.245e-05/0.3089, allocations: 32.38 kB / 436.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005342/0.3094, allocations: 297.9 kB / 436.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.3095, allocations: 7.938 kB / 436.5 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.3095, allocations: 8 kB / 436.5 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.3095, allocations: 8 kB / 436.5 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000378/0.3099, allocations: 190.2 kB / 436.7 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.3117, allocations: 1.131 MB / 437.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.312, allocations: 141.9 kB / 437.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.3122, allocations: 76.83 kB / 438 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.3122, allocations: 0 / 438 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000313/0.3125, allocations: 164.8 kB / 438.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.924e-06/0.3125, allocations: 0 / 438.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001096/0.3136, allocations: 379.7 kB / 438.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.039e-05/0.3137, allocations: 106.8 kB / 438.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.3139, allocations: 233 kB / 438.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.314, allocations: 29.7 kB / 438.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.3141, allocations: 180.5 kB / 439.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.616e-05/0.3142, allocations: 75.41 kB / 439.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.985e-05/0.3143, allocations: 57.66 kB / 439.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3144, allocations: 342.8 kB / 439.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.3145, allocations: 63.97 kB / 439.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.3148, allocations: 145.5 kB / 439.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003479/0.3151, allocations: 188.2 kB / 439.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.3151, allocations: 7.938 kB / 439.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004477/0.3155, allocations: 280.5 kB / 440.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.3156, allocations: 4 kB / 440.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3156, allocations: 4 kB / 440.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/0.3158, allocations: 53.03 kB / 440.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.3161, allocations: 55.91 kB / 440.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.3177, allocations: 1.569 MB / 441.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.3179, allocations: 39.77 kB / 441.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.318, allocations: 8 kB / 441.9 MB, free: 10.87 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.0001671/0.3181, allocations: 157.8 kB / 442.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.895e-05/0.3182, allocations: 23.86 kB / 442.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.099e-05/0.3182, allocations: 26.17 kB / 442.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3182, allocations: 4 kB / 442.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.3182, allocations: 0 / 442.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3182, allocations: 0 / 442.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003564/0.3186, allocations: 325.3 kB / 442.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3186, allocations: 0 / 442.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.3188, allocations: 39.92 kB / 442.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001868/0.3189, allocations: 52.75 kB / 442.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.319, allocations: 8 kB / 442.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.3204, allocations: 1.422 MB / 444 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3204, allocations: 3.938 kB / 444 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006671/0.321, allocations: 329.2 kB / 444.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.3212, allocations: 112.9 kB / 444.4 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.3212, allocations: 11.98 kB / 444.4 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.3214, allocations: 11.98 kB / 444.4 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.603e-05/0.3215, allocations: 36.02 kB / 444.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.3215, allocations: 8 kB / 444.5 MB, free: 8.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.3216, allocations: 156.5 kB / 444.6 MB, free: 7.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3216, allocations: 0 / 444.6 MB, free: 7.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003994/0.322, allocations: 91.77 kB / 444.7 MB, free: 7.84 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.0001689/0.3222, allocations: 107.2 kB / 444.8 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006162/0.3228, allocations: 278.8 kB / 445.1 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3228, allocations: 0 / 445.1 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003083/0.3231, allocations: 190.6 kB / 445.3 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.3234, allocations: 32.36 kB / 445.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.3252, allocations: 0.6701 MB / 446 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004109/0.3256, allocations: 0.7597 MB / 446.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.532e-05/0.3257, allocations: 30.27 kB / 446.8 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.245e-05/0.3257, allocations: 19.44 kB / 446.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3257, allocations: 0 / 446.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of Templates: time 0.007883/0.3336, allocations: 3.191 MB / 450 MB, free: 2.52 MB / 350.1 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.631506043486297]