Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008595/0.0008595, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001043/0.001902, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007173/0.0007173, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008451/0.001562, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9034/0.9034, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08282/0.9863, allocations: 52.5 MB / 238.3 MB, free: 4.422 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 3.938 kB / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.178e-05/1.315e-05, allocations: 2.312 kB / 239.6 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002677/0.00269, allocations: 3.151 MB / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000927/0.003617, allocations: 0.7707 MB / 243.5 MB, free: 15.21 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.003736, allocations: 4 kB / 243.5 MB, free: 15.21 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.295e-05/0.003829, allocations: 67.36 kB / 243.6 MB, free: 15.14 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.003968, allocations: 102.9 kB / 243.7 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.004175, allocations: 111.7 kB / 243.8 MB, free: 14.93 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002891/0.004464, allocations: 434 kB / 244.2 MB, free: 14.5 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.004611, allocations: 98.98 kB / 244.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.004854, allocations: 272 kB / 244.6 MB, free: 14.14 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.005008, allocations: 127.7 kB / 244.7 MB, free: 14.02 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.182e-05/0.00505, allocations: 32 kB / 244.7 MB, free: 13.98 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.747e-05/0.005087, allocations: 36 kB / 244.7 MB, free: 13.95 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.187e-05/0.005129, allocations: 59.75 kB / 244.8 MB, free: 13.89 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.155e-05/0.005221, allocations: 111.8 kB / 244.9 MB, free: 13.78 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.00546, allocations: 255 kB / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.374e-05/0.005474, allocations: 0 / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.005475, allocations: 0 / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.005493, allocations: 0 / 245.2 MB, free: 13.53 MB / 250.7 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.000681/0.006174, allocations: 0.6322 MB / 245.8 MB, free: 12.88 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.006204, allocations: 8.031 kB / 245.8 MB, free: 12.87 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.871e-05/0.006272, allocations: 56.89 kB / 245.9 MB, free: 12.81 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.006514, allocations: 190.2 kB / 246 MB, free: 12.6 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.942e-05/0.006593, allocations: 132 kB / 246.2 MB, free: 12.45 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.006629, allocations: 44.27 kB / 246.2 MB, free: 12.4 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.006901, allocations: 323.4 kB / 246.5 MB, free: 12.05 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.006911, allocations: 192 / 246.5 MB, free: 12.05 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.006929, allocations: 16.12 kB / 246.6 MB, free: 12.04 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.006937, allocations: 8 kB / 246.6 MB, free: 12.03 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.007046, allocations: 88.48 kB / 246.6 MB, free: 11.95 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009386/0.007984, allocations: 1.068 MB / 247.7 MB, free: 10.8 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/0.00814, allocations: 105.6 kB / 247.8 MB, free: 10.69 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.641e-05/0.008187, allocations: 48.81 kB / 247.9 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.008201, allocations: 8 kB / 247.9 MB, free: 10.63 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.008362, allocations: 184.5 kB / 248.1 MB, free: 10.42 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.008363, allocations: 0 / 248.1 MB, free: 10.42 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004108/0.008774, allocations: 186.3 kB / 248.2 MB, free: 10.23 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.008803, allocations: 59.34 kB / 248.3 MB, free: 10.16 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.008924, allocations: 232.9 kB / 248.5 MB, free: 9.922 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.008942, allocations: 33.7 kB / 248.6 MB, free: 9.883 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.943e-05/0.009021, allocations: 196.2 kB / 248.7 MB, free: 9.684 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.382e-05/0.009065, allocations: 75.39 kB / 248.8 MB, free: 9.609 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.427e-05/0.009129, allocations: 61.97 kB / 248.9 MB, free: 9.543 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.877e-05/0.009208, allocations: 334.8 kB / 249.2 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.784e-05/0.009246, allocations: 28.64 kB / 249.2 MB, free: 9.18 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.009349, allocations: 180.9 kB / 249.4 MB, free: 8.945 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.009493, allocations: 179.4 kB / 249.6 MB, free: 8.734 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.009496, allocations: 0 / 249.6 MB, free: 8.734 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002352/0.009731, allocations: 216.5 kB / 249.8 MB, free: 8.516 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.009743, allocations: 4 kB / 249.8 MB, free: 8.512 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.009751, allocations: 4 kB / 249.8 MB, free: 8.508 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001196/0.00987, allocations: 49.09 kB / 249.9 MB, free: 8.457 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.01005, allocations: 78.91 kB / 249.9 MB, free: 8.383 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006852/0.01073, allocations: 1.32 MB / 251.2 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.01085, allocations: 43.89 kB / 251.3 MB, free: 6.934 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.01086, allocations: 12 kB / 251.3 MB, free: 6.922 MB / 250.7 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 8.182e-05/0.01095, allocations: 129.8 kB / 251.4 MB, free: 6.785 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.01097, allocations: 23.92 kB / 251.5 MB, free: 6.762 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.64e-05/0.01099, allocations: 30.27 kB / 251.5 MB, free: 6.738 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.011, allocations: 0 / 251.5 MB, free: 6.738 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.011, allocations: 0 / 251.5 MB, free: 6.738 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.011, allocations: 0 / 251.5 MB, free: 6.738 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.01113, allocations: 169.7 kB / 251.6 MB, free: 6.555 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01114, allocations: 0 / 251.6 MB, free: 6.555 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.01126, allocations: 61.98 kB / 251.7 MB, free: 6.5 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.386e-05/0.01131, allocations: 23.8 kB / 251.7 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.093e-05/0.01139, allocations: 40.8 kB / 251.8 MB, free: 6.434 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.0114, allocations: 8 kB / 251.8 MB, free: 6.426 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000547/0.01194, allocations: 1.178 MB / 253 MB, free: 5.16 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.01194, allocations: 0 / 253 MB, free: 5.16 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002361/0.01218, allocations: 205.5 kB / 253.2 MB, free: 4.938 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.01221, allocations: 16.14 kB / 253.2 MB, free: 4.922 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.066e-05/0.01227, allocations: 12 kB / 253.2 MB, free: 4.91 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.901e-05/0.01234, allocations: 35.88 kB / 253.2 MB, free: 4.875 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.01234, allocations: 4 kB / 253.2 MB, free: 4.871 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.585e-05/0.0124, allocations: 74.77 kB / 253.3 MB, free: 4.797 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0124, allocations: 0 / 253.3 MB, free: 4.797 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002315/0.01263, allocations: 91.84 kB / 253.4 MB, free: 4.707 MB / 250.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: 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 9.636e-05/0.01273, allocations: 84.36 kB / 253.5 MB, free: 4.617 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000281/0.01301, allocations: 242.9 kB / 253.7 MB, free: 4.363 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/0.01302, allocations: 11.98 kB / 253.7 MB, free: 4.352 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.01315, allocations: 170.9 kB / 253.9 MB, free: 4.172 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001508/0.0133, allocations: 52.48 kB / 253.9 MB, free: 4.117 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.01655, allocations: 0.6474 MB / 254.6 MB, free: 3.441 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.274e-05/0.01661, allocations: 96.3 kB / 254.7 MB, free: 3.328 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.961e-05/0.01669, allocations: 22.3 kB / 254.7 MB, free: 3.301 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.0168, allocations: 95.33 kB / 254.8 MB, free: 3.207 MB / 250.7 MB Notification: Performance of SimCode: time 1.042e-06/0.01681, allocations: 0 / 254.8 MB, free: 3.207 MB / 250.7 MB Notification: Performance of Templates: time 0.005468/0.02227, allocations: 3.347 MB / 258.1 MB, free: 15.89 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.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.610390692949295]