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.001948/0.001948, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.00326/0.00326, allocations: 207.3 kB / 23.72 MB, free: 4.391 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.542/1.542, allocations: 230.5 MB / 257.4 MB, free: 7.773 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.002137/0.002137, allocations: 71.81 kB / 378.2 MB, free: 2.277 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2623, allocations: 53.4 MB / 431.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004718/0.267, allocations: 2.929 MB / 434.6 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.2685, allocations: 0.7751 MB / 435.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.2686, allocations: 4 kB / 435.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002098/0.2688, allocations: 71.36 kB / 435.4 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.269, allocations: 99.05 kB / 435.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004224/0.2694, allocations: 123.7 kB / 435.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004684/0.2699, allocations: 422.1 kB / 436.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.2701, allocations: 91.98 kB / 436.1 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.2704, allocations: 175.4 kB / 436.3 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.2707, allocations: 151.2 kB / 436.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.586e-05/0.2707, allocations: 32 kB / 436.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.2708, allocations: 47.92 kB / 436.5 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.886e-05/0.2709, allocations: 75.75 kB / 436.6 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.2711, allocations: 159.3 kB / 436.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004977/0.2716, allocations: 432.8 kB / 437.2 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.048e-05/0.2716, allocations: 3.984 kB / 437.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2716, allocations: 0 / 437.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.2716, allocations: 0 / 437.2 MB, free: 0.9258 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.001127/0.2727, allocations: 0.587 MB / 437.8 MB, free: 312 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.2727, allocations: 11.98 kB / 437.8 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.273, allocations: 56.64 kB / 437.9 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.2734, allocations: 223.6 kB / 438.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001268/0.2735, allocations: 140 kB / 438.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.164e-05/0.2736, allocations: 32.31 kB / 438.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006088/0.2742, allocations: 394.2 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.2742, allocations: 0 / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.2742, allocations: 16 kB / 438.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.2743, allocations: 8 kB / 438.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004341/0.2747, allocations: 214.5 kB / 438.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.2766, allocations: 1.197 MB / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.2769, allocations: 154.6 kB / 440.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.2771, allocations: 80.83 kB / 440.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.2771, allocations: 4 kB / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003313/0.2774, allocations: 212.6 kB / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.432e-06/0.2774, allocations: 4 kB / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001094/0.2785, allocations: 326.5 kB / 440.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.69e-05/0.2786, allocations: 110.8 kB / 440.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.2789, allocations: 248.9 kB / 441.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.2789, allocations: 37.64 kB / 441.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.2791, allocations: 208.2 kB / 441.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.926e-05/0.2791, allocations: 75.47 kB / 441.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.2792, allocations: 57.98 kB / 441.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.2794, allocations: 342.8 kB / 441.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.2796, allocations: 76.61 kB / 442 MB, free: 11.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.2798, allocations: 224.9 kB / 442.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003825/0.2802, allocations: 239.5 kB / 442.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2802, allocations: 0 / 442.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000715/0.2809, allocations: 336.6 kB / 442.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.281, allocations: 7.938 kB / 442.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.281, allocations: 4 kB / 442.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002698/0.2812, allocations: 60.8 kB / 442.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.2815, allocations: 64.06 kB / 442.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.2829, allocations: 1.441 MB / 444.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.2832, allocations: 43.8 kB / 444.4 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.2832, allocations: 20.09 kB / 444.4 MB, free: 9.25 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.0001808/0.2834, allocations: 153.7 kB / 444.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.2834, allocations: 27.81 kB / 444.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.407e-05/0.2835, allocations: 26.27 kB / 444.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.2835, allocations: 4 kB / 444.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2835, allocations: 3.938 kB / 444.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.2835, allocations: 0 / 444.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002875/0.2838, allocations: 233.2 kB / 444.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2838, allocations: 7.938 kB / 444.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001922/0.284, allocations: 35.98 kB / 444.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002116/0.2842, allocations: 52.75 kB / 444.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.2842, allocations: 7.984 kB / 444.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/0.2854, allocations: 1.299 MB / 446.2 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2854, allocations: 0 / 446.2 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007331/0.2861, allocations: 356 kB / 446.6 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.323e-05/0.2862, allocations: 35.81 kB / 446.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.752e-05/0.2863, allocations: 8 kB / 446.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.2864, allocations: 20.14 kB / 446.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.761e-05/0.2865, allocations: 35.88 kB / 446.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.2865, allocations: 4 kB / 446.7 MB, free: 6.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001612/0.2867, allocations: 168.5 kB / 446.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2867, allocations: 0 / 446.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003977/0.2871, allocations: 91.78 kB / 446.9 MB, free: 6.543 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.0001407/0.2872, allocations: 107.2 kB / 447 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006178/0.2878, allocations: 310.4 kB / 447.3 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2878, allocations: 0 / 447.3 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003374/0.2882, allocations: 194.6 kB / 447.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.2884, allocations: 29.11 kB / 447.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.29, allocations: 0.6754 MB / 448.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001694/0.2901, allocations: 164.8 kB / 448.4 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.2902, allocations: 26.28 kB / 448.4 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/0.2903, allocations: 23.42 kB / 448.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2903, allocations: 7.938 kB / 448.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of Templates: time 0.008151/0.2985, allocations: 3.262 MB / 451.7 MB, free: 1.727 MB / 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/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_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: 4.8414491806179285]