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.00175/0.00175, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002415/0.002415, allocations: 212 kB / 24.54 MB, free: 4.016 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.503/1.503, allocations: 230.6 MB / 258.3 MB, free: 8.07 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.001962/0.001962, allocations: 68.77 kB / 379 MB, free: 2.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2947, allocations: 53.37 MB / 432.4 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004751/0.2995, allocations: 3.194 MB / 435.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.3012, allocations: 0.8411 MB / 436.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.3013, allocations: 4 kB / 436.5 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001919/0.3015, allocations: 59.42 kB / 436.5 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.3017, allocations: 99.06 kB / 436.6 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004291/0.3022, allocations: 127.7 kB / 436.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005207/0.3027, allocations: 418.2 kB / 437.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.3029, allocations: 108.3 kB / 437.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003081/0.3032, allocations: 163.4 kB / 437.4 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.3035, allocations: 175.2 kB / 437.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.3036, allocations: 36 kB / 437.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.204e-05/0.3036, allocations: 36 kB / 437.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.583e-05/0.3037, allocations: 83.69 kB / 437.7 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.3039, allocations: 187.1 kB / 437.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005077/0.3044, allocations: 435.9 kB / 438.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3044, allocations: 0 / 438.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3044, allocations: 4 kB / 438.3 MB, free: 1.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.3044, allocations: 0 / 438.3 MB, free: 1.039 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.001033/0.3055, allocations: 0.5791 MB / 438.9 MB, free: 436 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.3055, allocations: 12.03 kB / 438.9 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.3057, allocations: 56.64 kB / 439 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003958/0.3061, allocations: 231.5 kB / 439.2 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.3062, allocations: 76.62 kB / 439.3 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.786e-05/0.3063, allocations: 32.42 kB / 439.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005874/0.3068, allocations: 342.8 kB / 439.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.3069, allocations: 3.938 kB / 439.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.3069, allocations: 12 kB / 439.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.3069, allocations: 8 kB / 439.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004431/0.3074, allocations: 222.5 kB / 439.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.3092, allocations: 1.314 MB / 441.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.3096, allocations: 162.5 kB / 441.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.3097, allocations: 80.77 kB / 441.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.3098, allocations: 8 kB / 441.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002802/0.31, allocations: 151.6 kB / 441.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.263e-06/0.31, allocations: 0 / 441.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001024/0.3111, allocations: 336.1 kB / 441.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.931e-05/0.3111, allocations: 114.7 kB / 442 MB, free: 13.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.3114, allocations: 265.8 kB / 442.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.3114, allocations: 33.7 kB / 442.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.3116, allocations: 208.3 kB / 442.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.06e-05/0.3117, allocations: 79.38 kB / 442.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.168e-05/0.3118, allocations: 54.03 kB / 442.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.3119, allocations: 342.8 kB / 443 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.3121, allocations: 76.62 kB / 443.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.3123, allocations: 177.5 kB / 443.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/0.3127, allocations: 235.6 kB / 443.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3127, allocations: 0 / 443.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007004/0.3134, allocations: 352.2 kB / 443.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.3134, allocations: 7.938 kB / 443.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3134, allocations: 8 kB / 443.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002212/0.3136, allocations: 53.16 kB / 443.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.3139, allocations: 67.91 kB / 444 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.3153, allocations: 1.461 MB / 445.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.3155, allocations: 47.81 kB / 445.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.3156, allocations: 19.98 kB / 445.5 MB, free: 9.414 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.0001741/0.3158, allocations: 145.8 kB / 445.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.199e-05/0.3158, allocations: 23.86 kB / 445.7 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.605e-05/0.3158, allocations: 34.2 kB / 445.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3159, allocations: 0 / 445.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.3159, allocations: 0 / 445.7 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3159, allocations: 7.984 kB / 445.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003557/0.3162, allocations: 324.4 kB / 446 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.3162, allocations: 0 / 446 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.3164, allocations: 31.98 kB / 446 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.3166, allocations: 52.75 kB / 446.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.3166, allocations: 4 kB / 446.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.318, allocations: 1.326 MB / 447.4 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.318, allocations: 4.031 kB / 447.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007227/0.3187, allocations: 356.5 kB / 447.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.659e-05/0.3188, allocations: 39.86 kB / 447.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.3188, allocations: 4.125 kB / 447.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.319, allocations: 19.98 kB / 447.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.943e-05/0.3191, allocations: 31.88 kB / 447.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.3191, allocations: 8 kB / 447.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001924/0.3193, allocations: 185.2 kB / 448.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3193, allocations: 0 / 448.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003852/0.3197, allocations: 91.78 kB / 448.1 MB, free: 6.559 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.0001388/0.3198, allocations: 111.2 kB / 448.3 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006265/0.3204, allocations: 298.4 kB / 448.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3204, allocations: 0 / 448.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000315/0.3207, allocations: 207.2 kB / 448.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.321, allocations: 36.47 kB / 448.8 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.3226, allocations: 0.6834 MB / 449.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004663/0.323, allocations: 0.7675 MB / 450.2 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.3231, allocations: 30.28 kB / 450.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.04e-05/0.3232, allocations: 23.44 kB / 450.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3232, allocations: 0 / 450.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of Templates: time 0.00836/0.3316, allocations: 3.338 MB / 453.6 MB, free: 1.02 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.864640253596008]