Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009618/0.0009618, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002108/0.002108, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9185/0.9185, allocations: 177.1 MB / 206.1 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.563e-05/1.692e-05, allocations: 3.188 kB / 274.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003335/0.003352, allocations: 2.867 MB / 277.1 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.004714, allocations: 0.7486 MB / 277.8 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.004834, allocations: 7.938 kB / 277.8 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.004964, allocations: 53.44 kB / 277.9 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.005114, allocations: 95.06 kB / 278 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002701/0.005384, allocations: 112.9 kB / 278.1 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002641/0.005648, allocations: 382.2 kB / 278.5 MB, free: 136 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.005793, allocations: 83.66 kB / 278.5 MB, free: 48 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.005984, allocations: 215.5 kB / 278.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.006124, allocations: 111.7 kB / 278.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.57e-05/0.00616, allocations: 28 kB / 278.9 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.125e-05/0.006191, allocations: 32 kB / 278.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.739e-05/0.006238, allocations: 75.72 kB / 279 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.991e-05/0.006318, allocations: 111.8 kB / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002162/0.006534, allocations: 251.1 kB / 279.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.006537, allocations: 0 / 279.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.006538, allocations: 0 / 279.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.006542, allocations: 7.938 kB / 279.4 MB, free: 15.23 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.0006692/0.007211, allocations: 0.6337 MB / 280 MB, free: 14.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.007248, allocations: 12.03 kB / 280 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.115e-05/0.007329, allocations: 64.7 kB / 280.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002242/0.007553, allocations: 204.1 kB / 280.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.409e-05/0.007627, allocations: 128 kB / 280.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.00766, allocations: 32.31 kB / 280.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.007917, allocations: 299 kB / 280.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.007928, allocations: 192 / 280.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.87e-05/0.007947, allocations: 16.12 kB / 280.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.007953, allocations: 4 kB / 280.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003701/0.008323, allocations: 92.44 kB / 280.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009097/0.009233, allocations: 1.053 MB / 281.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001668/0.0094, allocations: 123 kB / 282 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.673e-05/0.009447, allocations: 51.66 kB / 282 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.009463, allocations: 3.984 kB / 282 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.009623, allocations: 197.5 kB / 282.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.009625, allocations: 0 / 282.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004527/0.01008, allocations: 229.3 kB / 282.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.01012, allocations: 110.8 kB / 282.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.01023, allocations: 254.6 kB / 282.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.01025, allocations: 33.7 kB / 282.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.948e-05/0.01034, allocations: 231.1 kB / 283.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.944e-05/0.01038, allocations: 71.41 kB / 283.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.311e-05/0.01044, allocations: 67.27 kB / 283.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.01055, allocations: 0.5001 MB / 283.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.016e-05/0.01059, allocations: 35.83 kB / 283.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.862e-05/0.01069, allocations: 189 kB / 283.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.01082, allocations: 160.2 kB / 284.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.01082, allocations: 0 / 284.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000216/0.01103, allocations: 219.3 kB / 284.3 MB, free: 9.859 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.01105, allocations: 8.219 kB / 284.3 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.01105, allocations: 4 kB / 284.3 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001347/0.01119, allocations: 43.59 kB / 284.4 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.0113, allocations: 59.91 kB / 284.4 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000849/0.01215, allocations: 1.97 MB / 286.4 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.01226, allocations: 31.84 kB / 286.4 MB, free: 7.629 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.01227, allocations: 11.98 kB / 286.4 MB, free: 7.617 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 9.208e-05/0.01236, allocations: 176.5 kB / 286.6 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.01239, allocations: 31.91 kB / 286.6 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.01242, allocations: 26.03 kB / 286.7 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01242, allocations: 3.984 kB / 286.7 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.01242, allocations: 0 / 286.7 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.01243, allocations: 3.938 kB / 286.7 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001476/0.01258, allocations: 181.1 kB / 286.8 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.01258, allocations: 0 / 286.8 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.544e-05/0.01266, allocations: 31.98 kB / 286.9 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.773e-05/0.01276, allocations: 47.59 kB / 286.9 MB, free: 7.082 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.01277, allocations: 3.984 kB / 286.9 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00092/0.01369, allocations: 1.725 MB / 288.7 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.01369, allocations: 0 / 288.7 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.01396, allocations: 251.1 kB / 288.9 MB, free: 4.973 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.014, allocations: 43.73 kB / 288.9 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.01403, allocations: 8 kB / 288.9 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.412e-05/0.01409, allocations: 11.94 kB / 289 MB, free: 4.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.01414, allocations: 31.94 kB / 289 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.01415, allocations: 11.97 kB / 289 MB, free: 4.867 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.102e-05/0.01421, allocations: 173.4 kB / 289.2 MB, free: 4.699 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01421, allocations: 0 / 289.2 MB, free: 4.699 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002169/0.01443, allocations: 83.81 kB / 289.3 MB, free: 4.617 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 8.518e-05/0.01452, allocations: 103.2 kB / 289.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002751/0.01479, allocations: 304.9 kB / 289.7 MB, free: 4.191 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01479, allocations: 0 / 289.7 MB, free: 4.191 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.01494, allocations: 229.4 kB / 289.9 MB, free: 3.945 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001821/0.01512, allocations: 48.34 kB / 289.9 MB, free: 3.898 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008783/0.016, allocations: 0.5611 MB / 290.5 MB, free: 3.305 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.102e-05/0.01604, allocations: 84.31 kB / 290.6 MB, free: 3.203 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.032e-05/0.0161, allocations: 21.94 kB / 290.6 MB, free: 3.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.0162, allocations: 118.2 kB / 290.7 MB, free: 3.062 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.0162, allocations: 0 / 290.7 MB, free: 3.062 MB / 266.7 MB Notification: Performance of Templates: time 0.004738/0.02094, allocations: 3.206 MB / 293.9 MB, free: 15.91 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.7491010860539973]