Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001938/0.001938, allocations: 88.7 kB / 21.44 MB, free: 272 kB / 14.72 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.002971/0.002971, allocations: 165.1 kB / 24.71 MB, free: 3.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 158.6 MB / 186.5 MB, free: 6.398 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.324e-06/2.324e-06, allocations: 0 / 299 MB, free: 8.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.961e-05/3.193e-05, allocations: 2.281 kB / 299 MB, free: 8.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004459/0.004491, allocations: 2.633 MB / 301.6 MB, free: 6.059 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.006058, allocations: 0.7369 MB / 302.3 MB, free: 5.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.006197, allocations: 4 kB / 302.3 MB, free: 5.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.006366, allocations: 55.44 kB / 302.4 MB, free: 5.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.006556, allocations: 95.11 kB / 302.5 MB, free: 5.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003423/0.006898, allocations: 107.7 kB / 302.6 MB, free: 5.055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000426/0.007324, allocations: 382.2 kB / 303 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.00753, allocations: 83.67 kB / 303 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002737/0.007803, allocations: 211.5 kB / 303.2 MB, free: 4.391 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.008008, allocations: 115.7 kB / 303.4 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.371e-05/0.008072, allocations: 32 kB / 303.4 MB, free: 4.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.00819, allocations: 35.94 kB / 303.4 MB, free: 4.211 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.484e-05/0.008265, allocations: 67.73 kB / 303.5 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.008408, allocations: 111.8 kB / 303.6 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004799/0.008888, allocations: 378.8 kB / 304 MB, free: 3.664 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.008893, allocations: 7.938 kB / 304 MB, free: 3.656 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.008894, allocations: 0 / 304 MB, free: 3.656 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.008901, allocations: 4 kB / 304 MB, free: 3.652 MB / 286.1 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.001136/0.01004, allocations: 0.5339 MB / 304.5 MB, free: 3.086 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.01008, allocations: 11.98 kB / 304.5 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.838e-05/0.01017, allocations: 36.75 kB / 304.6 MB, free: 3.039 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004294/0.0106, allocations: 213.8 kB / 304.8 MB, free: 2.805 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.01074, allocations: 132 kB / 304.9 MB, free: 2.652 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.12e-05/0.0108, allocations: 24.38 kB / 304.9 MB, free: 2.629 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005951/0.01139, allocations: 353.9 kB / 305.3 MB, free: 2.254 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.01141, allocations: 192 / 305.3 MB, free: 2.254 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.024e-05/0.01145, allocations: 20.11 kB / 305.3 MB, free: 2.234 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.01146, allocations: 7.984 kB / 305.3 MB, free: 2.227 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003591/0.01182, allocations: 186.5 kB / 305.5 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.01356, allocations: 0.962 MB / 306.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.01391, allocations: 146.6 kB / 306.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.01404, allocations: 76.83 kB / 306.7 MB, free: 0.793 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.01407, allocations: 7.938 kB / 306.7 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003187/0.01438, allocations: 201.3 kB / 306.9 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.773e-06/0.01439, allocations: 0 / 306.9 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001066/0.01545, allocations: 318.3 kB / 307.2 MB, free: 240 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.263e-05/0.01553, allocations: 106.8 kB / 307.3 MB, free: 108 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.01576, allocations: 207.8 kB / 307.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.01579, allocations: 33.69 kB / 307.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.01593, allocations: 180.4 kB / 307.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.846e-05/0.016, allocations: 75.38 kB / 307.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.621e-05/0.0161, allocations: 61.69 kB / 307.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.01625, allocations: 326.8 kB / 308.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.01638, allocations: 63.97 kB / 308.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.0166, allocations: 200 kB / 308.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.01689, allocations: 192.1 kB / 308.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01689, allocations: 0 / 308.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004614/0.01735, allocations: 275.9 kB / 308.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.01737, allocations: 12 kB / 308.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.01738, allocations: 0 / 308.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002701/0.01765, allocations: 56.81 kB / 308.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/0.01787, allocations: 51.91 kB / 309 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/0.01941, allocations: 1.449 MB / 310.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.01963, allocations: 39.86 kB / 310.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.01965, allocations: 8 kB / 310.5 MB, free: 12.7 MB / 302.1 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.0001737/0.01983, allocations: 149.9 kB / 310.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.464e-05/0.01986, allocations: 23.91 kB / 310.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.883e-05/0.01991, allocations: 21.97 kB / 310.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.01992, allocations: 7.938 kB / 310.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.01992, allocations: 0 / 310.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.01992, allocations: 3.984 kB / 310.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002709/0.0202, allocations: 217.1 kB / 310.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.0202, allocations: 0 / 310.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.02036, allocations: 39.91 kB / 310.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001813/0.02055, allocations: 48.83 kB / 311 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.02057, allocations: 7.984 kB / 311 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001275/0.02184, allocations: 1.292 MB / 312.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.02185, allocations: 4.156 kB / 312.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006621/0.02251, allocations: 325.7 kB / 312.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.134e-05/0.02259, allocations: 31.84 kB / 312.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.02262, allocations: 4 kB / 312.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.02278, allocations: 15.98 kB / 312.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.77e-05/0.02288, allocations: 35.88 kB / 312.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.0229, allocations: 4 kB / 312.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001447/0.02304, allocations: 148.3 kB / 312.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.02304, allocations: 0 / 312.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003783/0.02342, allocations: 87.78 kB / 312.9 MB, free: 10.09 MB / 302.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: 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.0001426/0.02356, allocations: 109.5 kB / 313 MB, free: 9.977 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000586/0.02415, allocations: 274.4 kB / 313.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.02415, allocations: 0 / 313.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002963/0.02444, allocations: 192 kB / 313.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.02473, allocations: 42.52 kB / 313.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.02627, allocations: 0.6003 MB / 314.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/0.02642, allocations: 154.8 kB / 314.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.207e-05/0.02651, allocations: 17.95 kB / 314.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.541e-05/0.02656, allocations: 24.48 kB / 314.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.02656, allocations: 0 / 314.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of Templates: time 0.007125/0.03369, allocations: 2.869 MB / 317.2 MB, free: 5.746 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.328344635665417]