Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001668/0.001668, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.002116/0.002116, allocations: 213.9 kB / 24.48 MB, free: 3.836 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.479/1.479, allocations: 230.5 MB / 258.1 MB, free: 7.797 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 67.89 kB / 379 MB, free: 2.398 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.253, allocations: 53.41 MB / 432.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004731/0.2578, allocations: 2.926 MB / 435.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001737/0.2595, allocations: 0.7751 MB / 436.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003028/0.2598, allocations: 4 kB / 436.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002486/0.26, allocations: 67.36 kB / 436.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003028/0.2604, allocations: 95.06 kB / 436.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004967/0.2608, allocations: 127.8 kB / 436.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005748/0.2614, allocations: 430 kB / 436.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.2617, allocations: 96.31 kB / 436.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003342/0.262, allocations: 167.4 kB / 437.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.2623, allocations: 147.2 kB / 437.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.661e-05/0.2623, allocations: 35.98 kB / 437.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.2624, allocations: 43.94 kB / 437.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.746e-05/0.2625, allocations: 79.75 kB / 437.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.2627, allocations: 155.3 kB / 437.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005111/0.2632, allocations: 435.9 kB / 438 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2632, allocations: 4 kB / 438 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2632, allocations: 0 / 438 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.447e-05/0.2632, allocations: 0 / 438 MB, free: 0.9492 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.001202/0.2644, allocations: 0.587 MB / 438.5 MB, free: 336 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.2645, allocations: 11.98 kB / 438.6 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002418/0.2647, allocations: 64.64 kB / 438.6 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005017/0.2652, allocations: 219.5 kB / 438.8 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.2654, allocations: 136 kB / 439 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.2654, allocations: 28.38 kB / 439 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006529/0.2661, allocations: 398.2 kB / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.2661, allocations: 0 / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.769e-05/0.2661, allocations: 16 kB / 439.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.2661, allocations: 8 kB / 439.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000432/0.2666, allocations: 218.5 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.2685, allocations: 1.197 MB / 440.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000406/0.2689, allocations: 153.8 kB / 441 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.2691, allocations: 80.83 kB / 441 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.2691, allocations: 4 kB / 441 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003224/0.2694, allocations: 212.8 kB / 441.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.854e-06/0.2694, allocations: 4 kB / 441.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001079/0.2705, allocations: 326.5 kB / 441.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.476e-05/0.2706, allocations: 110.8 kB / 441.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/0.2708, allocations: 248.9 kB / 441.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.2708, allocations: 37.7 kB / 442 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.271, allocations: 208.2 kB / 442.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.889e-05/0.2711, allocations: 75.47 kB / 442.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.682e-05/0.2712, allocations: 57.98 kB / 442.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.2713, allocations: 338.8 kB / 442.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.2715, allocations: 80.55 kB / 442.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002682/0.2718, allocations: 224.9 kB / 442.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/0.2721, allocations: 243.5 kB / 443.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2721, allocations: 0 / 443.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006873/0.2728, allocations: 336.4 kB / 443.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.2728, allocations: 7.938 kB / 443.5 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.2729, allocations: 4 kB / 443.5 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.2731, allocations: 61.16 kB / 443.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002565/0.2734, allocations: 59.91 kB / 443.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.2748, allocations: 1.442 MB / 445.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.275, allocations: 47.86 kB / 445.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.2751, allocations: 15.94 kB / 445.1 MB, free: 9.273 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.0001827/0.2752, allocations: 153.7 kB / 445.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.354e-05/0.2753, allocations: 27.81 kB / 445.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.153e-05/0.2754, allocations: 26.27 kB / 445.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.2754, allocations: 4 kB / 445.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.2754, allocations: 3.938 kB / 445.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.2754, allocations: 4 kB / 445.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000288/0.2757, allocations: 237.2 kB / 445.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2757, allocations: 0 / 445.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.2759, allocations: 31.98 kB / 445.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001831/0.276, allocations: 52.75 kB / 445.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.2761, allocations: 11.98 kB / 445.7 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.2772, allocations: 1.292 MB / 447 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2772, allocations: 0 / 447 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007147/0.278, allocations: 356.2 kB / 447.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.559e-05/0.2781, allocations: 39.8 kB / 447.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.2781, allocations: 8 kB / 447.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.2783, allocations: 19.98 kB / 447.4 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.2783, allocations: 27.94 kB / 447.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.2784, allocations: 4 kB / 447.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001612/0.2785, allocations: 172.5 kB / 447.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2785, allocations: 0 / 447.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003922/0.2789, allocations: 91.78 kB / 447.7 MB, free: 6.574 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.0001398/0.2791, allocations: 119.2 kB / 447.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006502/0.2797, allocations: 298.4 kB / 448.1 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2797, allocations: 0 / 448.1 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.28, allocations: 199.2 kB / 448.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/0.2803, allocations: 39.11 kB / 448.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.2818, allocations: 0.7018 MB / 449 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.282, allocations: 164.8 kB / 449.2 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.811e-05/0.2821, allocations: 19.44 kB / 449.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2821, allocations: 0 / 449.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of Templates: time 0.008065/0.2901, allocations: 4.722 MB / 453.9 MB, free: 252 kB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.736868391279131]