Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001303/0.001303, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 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.001405/0.001405, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.387/1.387, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 52.06 kB / 379 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.233, allocations: 53.37 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004236/0.2372, allocations: 2.91 MB / 435.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.2386, allocations: 0.7751 MB / 436.1 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.2387, allocations: 7.938 kB / 436.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.2389, allocations: 47.5 kB / 436.1 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001895/0.2391, allocations: 99.17 kB / 436.2 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003244/0.2394, allocations: 103.8 kB / 436.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004299/0.2398, allocations: 370.4 kB / 436.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.24, allocations: 87.67 kB / 436.8 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.2402, allocations: 143.5 kB / 436.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.2404, allocations: 151.3 kB / 437.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.2404, allocations: 28 kB / 437.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.081e-05/0.2405, allocations: 32 kB / 437.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.074e-05/0.2406, allocations: 75.73 kB / 437.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.2407, allocations: 167.2 kB / 437.4 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.2411, allocations: 363.8 kB / 437.7 MB, free: 1.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2412, allocations: 0 / 437.7 MB, free: 1.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2412, allocations: 0 / 437.7 MB, free: 1.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.2412, allocations: 0 / 437.7 MB, free: 1.586 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001002/0.2422, allocations: 0.5417 MB / 438.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2422, allocations: 8.031 kB / 438.3 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.021e-05/0.2423, allocations: 44.7 kB / 438.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.2427, allocations: 206.7 kB / 438.5 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.2428, allocations: 124 kB / 438.6 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.385e-05/0.2428, allocations: 28.38 kB / 438.7 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.2433, allocations: 310 kB / 439 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.2433, allocations: 0 / 439 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/0.2434, allocations: 12 kB / 439 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.2434, allocations: 8 kB / 439 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003515/0.2437, allocations: 190.5 kB / 439.2 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.2454, allocations: 1.074 MB / 440.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.2457, allocations: 162.5 kB / 440.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.2459, allocations: 72.83 kB / 440.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.2459, allocations: 4 kB / 440.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.2461, allocations: 153.8 kB / 440.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.182e-06/0.2462, allocations: 0 / 440.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009814/0.2471, allocations: 308.5 kB / 440.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/0.2472, allocations: 106.8 kB / 441 MB, free: 14.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.2474, allocations: 229 kB / 441.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.672e-05/0.2475, allocations: 29.7 kB / 441.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.2476, allocations: 188.4 kB / 441.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.51e-05/0.2477, allocations: 71.47 kB / 441.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.887e-05/0.2478, allocations: 53.7 kB / 441.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.248, allocations: 338.8 kB / 441.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.2481, allocations: 63.97 kB / 442 MB, free: 13.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.2483, allocations: 144.6 kB / 442.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002797/0.2486, allocations: 196.1 kB / 442.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2486, allocations: 0 / 442.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000442/0.249, allocations: 268.5 kB / 442.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.249, allocations: 12.22 kB / 442.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.249, allocations: 0 / 442.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002604/0.2493, allocations: 56.81 kB / 442.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.2495, allocations: 51.91 kB / 442.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001434/0.2509, allocations: 1.477 MB / 444.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.2511, allocations: 39.77 kB / 444.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.2512, allocations: 15.94 kB / 444.2 MB, free: 10.62 MB / 350.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.0001615/0.2513, allocations: 151.3 kB / 444.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.2514, allocations: 23.86 kB / 444.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.712e-05/0.2514, allocations: 26.27 kB / 444.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2514, allocations: 8.062 kB / 444.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.2514, allocations: 0 / 444.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2514, allocations: 0 / 444.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003364/0.2518, allocations: 292.4 kB / 444.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2518, allocations: 0 / 444.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2519, allocations: 47.89 kB / 444.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.2521, allocations: 52.77 kB / 444.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.2521, allocations: 7.984 kB / 444.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.2534, allocations: 1.326 MB / 446.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2534, allocations: 0 / 446.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006225/0.254, allocations: 323 kB / 446.5 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.893e-05/0.2541, allocations: 39.8 kB / 446.5 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.2541, allocations: 8 kB / 446.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.2543, allocations: 11.98 kB / 446.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.285e-05/0.2543, allocations: 35.94 kB / 446.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.2544, allocations: 4 kB / 446.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.2545, allocations: 160.5 kB / 446.7 MB, free: 7.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2545, allocations: 64 / 446.7 MB, free: 7.945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003572/0.2549, allocations: 87.83 kB / 446.8 MB, free: 7.859 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: 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.0001158/0.255, allocations: 103.2 kB / 446.9 MB, free: 7.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005567/0.2555, allocations: 286.4 kB / 447.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2555, allocations: 0 / 447.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000286/0.2558, allocations: 193.3 kB / 447.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.2561, allocations: 32.42 kB / 447.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.2577, allocations: 0.6914 MB / 448.1 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.2581, allocations: 0.7635 MB / 448.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.586e-05/0.2582, allocations: 23.44 kB / 448.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2582, allocations: 0 / 448.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of Templates: time 0.00637/0.2645, allocations: 4.213 MB / 453.1 MB, free: 1.484 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.125338583951816]