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.00197/0.00197, allocations: 92.27 kB / 20.96 MB, free: 3.445 MB / 18.57 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.002411/0.002411, allocations: 152.9 kB / 24.26 MB, free: 148 kB / 18.57 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.482/1.482, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 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 2.234e-06/2.234e-06, allocations: 0 / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.142e-05/3.365e-05, allocations: 2.312 kB / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.006545/0.006578, allocations: 2.704 MB / 274.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.008762, allocations: 0.7398 MB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002033/0.008965, allocations: 8 kB / 275.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000256/0.009221, allocations: 55.44 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.009525, allocations: 91.06 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004789/0.01, allocations: 103.7 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006454/0.01065, allocations: 386.2 kB / 276.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.01091, allocations: 83.67 kB / 276.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004085/0.01132, allocations: 215.5 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/0.0116, allocations: 115.7 kB / 276.7 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.947e-05/0.01168, allocations: 32 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.785e-05/0.01176, allocations: 28 kB / 276.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.01187, allocations: 67.75 kB / 276.8 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.01209, allocations: 115.8 kB / 276.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000662/0.01275, allocations: 378.8 kB / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.01276, allocations: 0 / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.01276, allocations: 4 kB / 277.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.01276, allocations: 0 / 277.3 MB, free: 12.66 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.001455/0.01422, allocations: 0.53 MB / 277.8 MB, free: 12.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/0.01428, allocations: 19.97 kB / 277.9 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.01445, allocations: 60.7 kB / 277.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005764/0.01503, allocations: 205.9 kB / 278.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.01522, allocations: 128 kB / 278.2 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.254e-05/0.01531, allocations: 28.38 kB / 278.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008293/0.01614, allocations: 353.8 kB / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.01616, allocations: 192 / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.901e-05/0.0162, allocations: 16.12 kB / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.01622, allocations: 4 kB / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005576/0.01677, allocations: 194.5 kB / 278.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002468/0.01924, allocations: 0.9775 MB / 279.8 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004424/0.01968, allocations: 150.5 kB / 279.9 MB, free: 9.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.01989, allocations: 72.83 kB / 280 MB, free: 9.766 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.01992, allocations: 4 kB / 280 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004438/0.02036, allocations: 205.3 kB / 280.2 MB, free: 9.527 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.793e-06/0.02037, allocations: 0 / 280.2 MB, free: 9.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001513/0.02188, allocations: 317.8 kB / 280.5 MB, free: 9.211 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.022, allocations: 110.8 kB / 280.6 MB, free: 9.078 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.02233, allocations: 199.8 kB / 280.8 MB, free: 8.875 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.02238, allocations: 33.7 kB / 280.9 MB, free: 8.836 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.02258, allocations: 184.4 kB / 281 MB, free: 8.652 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.02268, allocations: 75.36 kB / 281.1 MB, free: 8.578 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.02284, allocations: 61.52 kB / 281.2 MB, free: 8.512 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002486/0.02309, allocations: 334.8 kB / 281.5 MB, free: 8.176 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.02329, allocations: 67.97 kB / 281.6 MB, free: 8.109 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003562/0.02365, allocations: 193.6 kB / 281.8 MB, free: 7.875 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/0.02412, allocations: 188.2 kB / 281.9 MB, free: 7.668 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.02412, allocations: 0 / 281.9 MB, free: 7.668 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000759/0.02488, allocations: 292.5 kB / 282.2 MB, free: 7.375 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.0249, allocations: 4 kB / 282.2 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.02491, allocations: 4 kB / 282.2 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003547/0.02527, allocations: 52.81 kB / 282.3 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003112/0.02558, allocations: 48.08 kB / 282.3 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/0.02782, allocations: 1.453 MB / 283.8 MB, free: 5.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.02817, allocations: 35.83 kB / 283.8 MB, free: 5.676 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.245e-05/0.0282, allocations: 8 kB / 283.8 MB, free: 5.668 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 0.0002572/0.02846, allocations: 153.9 kB / 284 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.44e-05/0.02853, allocations: 23.91 kB / 284 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.241e-05/0.02861, allocations: 25.95 kB / 284 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.02862, allocations: 7.938 kB / 284 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/0.02863, allocations: 0 / 284 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.02863, allocations: 0 / 284 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004205/0.02905, allocations: 225.1 kB / 284.3 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.02906, allocations: 0 / 284.3 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.02931, allocations: 31.98 kB / 284.3 MB, free: 5.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002698/0.02958, allocations: 52.81 kB / 284.3 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.0296, allocations: 4 kB / 284.3 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001964/0.03156, allocations: 1.299 MB / 285.6 MB, free: 3.707 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.03157, allocations: 3.984 kB / 285.7 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.0326, allocations: 333.5 kB / 286 MB, free: 3.355 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.03274, allocations: 39.84 kB / 286 MB, free: 3.316 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.03278, allocations: 8 kB / 286 MB, free: 3.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.03302, allocations: 11.98 kB / 286 MB, free: 3.297 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.03315, allocations: 35.94 kB / 286.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.03317, allocations: 8.156 kB / 286.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002158/0.03339, allocations: 149.4 kB / 286.2 MB, free: 3.109 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.03339, allocations: 0 / 286.2 MB, free: 3.109 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006413/0.03403, allocations: 79.84 kB / 286.3 MB, free: 3.031 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 0.0001869/0.03421, allocations: 107.1 kB / 286.4 MB, free: 2.918 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008106/0.03503, allocations: 285.5 kB / 286.7 MB, free: 2.629 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.03503, allocations: 448 / 286.7 MB, free: 2.629 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.03545, allocations: 190.5 kB / 286.9 MB, free: 2.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.03587, allocations: 47.83 kB / 286.9 MB, free: 2.383 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.03815, allocations: 0.5955 MB / 287.5 MB, free: 1.758 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.03837, allocations: 150.9 kB / 287.7 MB, free: 1.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.03852, allocations: 17.95 kB / 287.7 MB, free: 1.574 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.316e-05/0.0386, allocations: 32.48 kB / 287.7 MB, free: 1.543 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.0386, allocations: 0 / 287.7 MB, free: 1.543 MB / 266.7 MB Notification: Performance of Templates: time 0.01064/0.04924, allocations: 2.898 MB / 290.6 MB, free: 14.69 MB / 282.7 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.419773850007914]