Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001326/0.001326, allocations: 117.9 kB / 21.18 MB, free: 0.6289 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.001423/0.001423, allocations: 202.8 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 230.4 MB / 258.1 MB, free: 8.141 MB / 206.1 MB " [Timeout remaining time 178] 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "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.00193/0.00193, allocations: 71.83 kB / 378.7 MB, free: 2.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.291, allocations: 53.31 MB / 432.1 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005036/0.296, allocations: 3.19 MB / 435.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.2978, allocations: 0.8256 MB / 436.1 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.298, allocations: 8 kB / 436.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002075/0.2982, allocations: 59.42 kB / 436.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002142/0.2984, allocations: 103 kB / 436.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004643/0.2989, allocations: 123.7 kB / 436.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.2994, allocations: 422.2 kB / 436.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002292/0.2996, allocations: 99.75 kB / 436.9 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00028/0.2999, allocations: 163.4 kB / 437 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.3001, allocations: 179.2 kB / 437.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.786e-05/0.3002, allocations: 36 kB / 437.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.025e-05/0.3003, allocations: 39.98 kB / 437.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.747e-05/0.3004, allocations: 75.7 kB / 437.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.3006, allocations: 191.1 kB / 437.5 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005543/0.3011, allocations: 431.7 kB / 438 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3011, allocations: 0 / 438 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3011, allocations: 4 kB / 438 MB, free: 1.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.3011, allocations: 0 / 438 MB, free: 1.457 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001204/0.3023, allocations: 0.6584 MB / 438.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.3024, allocations: 8.031 kB / 438.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.3026, allocations: 56.64 kB / 438.7 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.3031, allocations: 293.3 kB / 439 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.983e-05/0.3032, allocations: 76.62 kB / 439.1 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.549e-05/0.3032, allocations: 32.38 kB / 439.1 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006229/0.3039, allocations: 338.9 kB / 439.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.3039, allocations: 3.938 kB / 439.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.639e-05/0.3039, allocations: 16 kB / 439.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.3039, allocations: 11.98 kB / 439.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000441/0.3044, allocations: 214.5 kB / 439.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.3064, allocations: 1.364 MB / 441 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004244/0.3069, allocations: 166.5 kB / 441.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.307, allocations: 88.8 kB / 441.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.3071, allocations: 0 / 441.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003036/0.3074, allocations: 153.9 kB / 441.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.413e-06/0.3074, allocations: 4 kB / 441.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001177/0.3085, allocations: 398.2 kB / 441.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.967e-05/0.3086, allocations: 114.8 kB / 441.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.3089, allocations: 266.7 kB / 442.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.898e-05/0.309, allocations: 29.7 kB / 442.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.3091, allocations: 212.3 kB / 442.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.738e-05/0.3092, allocations: 75.36 kB / 442.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.3093, allocations: 66.02 kB / 442.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3095, allocations: 330.8 kB / 442.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.3096, allocations: 76.62 kB / 443 MB, free: 12.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.3099, allocations: 185.5 kB / 443.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003796/0.3103, allocations: 235.6 kB / 443.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.3103, allocations: 8 kB / 443.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007447/0.311, allocations: 344.5 kB / 443.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3111, allocations: 11.94 kB / 443.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3111, allocations: 0 / 443.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002889/0.3114, allocations: 52.97 kB / 443.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.3116, allocations: 71.84 kB / 443.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.3132, allocations: 1.569 MB / 445.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.3135, allocations: 39.78 kB / 445.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.78e-05/0.3135, allocations: 16 kB / 445.5 MB, free: 9.395 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001947/0.3137, allocations: 153.8 kB / 445.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.717e-05/0.3138, allocations: 31.84 kB / 445.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.983e-05/0.3138, allocations: 26.12 kB / 445.7 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3138, allocations: 4 kB / 445.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3138, allocations: 3.984 kB / 445.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3138, allocations: 0 / 445.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004699/0.3143, allocations: 341.4 kB / 446 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3143, allocations: 0 / 446 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.3145, allocations: 39.91 kB / 446.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002032/0.3147, allocations: 56.75 kB / 446.1 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.3147, allocations: 4 kB / 446.1 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.3161, allocations: 1.422 MB / 447.5 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3161, allocations: 0 / 447.5 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007498/0.3169, allocations: 361.6 kB / 447.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.317, allocations: 113 kB / 448 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.3171, allocations: 4 kB / 448 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.3173, allocations: 24.05 kB / 448 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.43e-05/0.3173, allocations: 31.89 kB / 448.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.3174, allocations: 8 kB / 448.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002016/0.3176, allocations: 182 kB / 448.2 MB, free: 6.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3176, allocations: 0 / 448.2 MB, free: 6.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004299/0.318, allocations: 95.78 kB / 448.3 MB, free: 6.277 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001635/0.3182, allocations: 106.9 kB / 448.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006814/0.3188, allocations: 306.4 kB / 448.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3188, allocations: 0 / 448.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003273/0.3192, allocations: 198.5 kB / 448.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.3194, allocations: 37.23 kB / 449 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.3211, allocations: 0.7198 MB / 449.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/0.3216, allocations: 0.7675 MB / 450.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.269e-05/0.3216, allocations: 27.42 kB / 450.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3216, allocations: 0 / 450.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of Templates: time 0.00774/0.3294, allocations: 4.706 MB / 455.2 MB, free: 15.34 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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: 7.414555270690471]