Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.0009491/0.0009491, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001034/0.001034, allocations: 141.9 kB / 25.59 MB, free: 8.91 MB / 18.57 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.9239/0.9239, allocations: 173.4 MB / 202.2 MB, free: 8.316 MB / 186.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.601e-05/1.73e-05, allocations: 6.25 kB / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002929/0.002946, allocations: 2.84 MB / 272 MB, free: 6.926 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.004337, allocations: 0.7216 MB / 272.8 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.004525, allocations: 8.531 kB / 272.8 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.004692, allocations: 47.5 kB / 272.8 MB, free: 6.148 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002208/0.004913, allocations: 97.12 kB / 272.9 MB, free: 6.055 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003776/0.005291, allocations: 120.4 kB / 273 MB, free: 5.938 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003626/0.005653, allocations: 382.2 kB / 273.4 MB, free: 5.562 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.005845, allocations: 85.34 kB / 273.5 MB, free: 5.477 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.006042, allocations: 211.6 kB / 273.7 MB, free: 5.27 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.006195, allocations: 111.7 kB / 273.8 MB, free: 5.16 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.526e-05/0.006231, allocations: 32 kB / 273.8 MB, free: 5.129 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.277e-05/0.006263, allocations: 29.56 kB / 273.9 MB, free: 5.102 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.129e-05/0.006315, allocations: 75.73 kB / 273.9 MB, free: 5.027 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.503e-05/0.0064, allocations: 115.7 kB / 274.1 MB, free: 4.914 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.006637, allocations: 247.1 kB / 274.3 MB, free: 4.672 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.00664, allocations: 0.5 kB / 274.3 MB, free: 4.672 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.006641, allocations: 0.5 kB / 274.3 MB, free: 4.672 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.006646, allocations: 4 kB / 274.3 MB, free: 4.668 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0006417/0.007288, allocations: 0.6377 MB / 274.9 MB, free: 3.996 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.007319, allocations: 8.031 kB / 274.9 MB, free: 3.988 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.034e-05/0.007389, allocations: 60.7 kB / 275 MB, free: 3.93 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000211/0.0076, allocations: 204.1 kB / 275.2 MB, free: 3.703 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.945e-05/0.00768, allocations: 136 kB / 275.3 MB, free: 3.543 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.042e-05/0.00772, allocations: 32.33 kB / 275.4 MB, free: 3.512 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.008023, allocations: 291.1 kB / 275.7 MB, free: 3.199 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.008035, allocations: 4.125 kB / 275.7 MB, free: 3.195 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.008061, allocations: 20.06 kB / 275.7 MB, free: 3.176 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.00807, allocations: 8 kB / 275.7 MB, free: 3.168 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.008193, allocations: 88.5 kB / 275.8 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.009222, allocations: 1.057 MB / 276.8 MB, free: 1.961 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.009391, allocations: 115.1 kB / 276.9 MB, free: 1.836 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.97e-05/0.009441, allocations: 51.66 kB / 277 MB, free: 1.781 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.009458, allocations: 4 kB / 277 MB, free: 1.777 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001654/0.009623, allocations: 197.4 kB / 277.2 MB, free: 1.547 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.009625, allocations: 0 / 277.2 MB, free: 1.547 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004855/0.01011, allocations: 229.3 kB / 277.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.01016, allocations: 110.8 kB / 277.5 MB, free: 1.18 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.01028, allocations: 258.6 kB / 277.8 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.0103, allocations: 25.7 kB / 277.8 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.208e-05/0.01039, allocations: 235.1 kB / 278 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.01043, allocations: 71.41 kB / 278.1 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-05/0.0105, allocations: 67.28 kB / 278.2 MB, free: 0.5 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.01063, allocations: 0.5001 MB / 278.7 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.435e-05/0.01067, allocations: 31.97 kB / 278.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.01078, allocations: 193.1 kB / 278.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.01091, allocations: 160.6 kB / 279 MB, free: 15.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.01092, allocations: 0 / 279 MB, free: 15.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002249/0.01114, allocations: 223.2 kB / 279.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.01116, allocations: 8 kB / 279.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.01116, allocations: 4.219 kB / 279.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001473/0.01131, allocations: 39.66 kB / 279.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.01144, allocations: 59.91 kB / 279.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/0.01246, allocations: 1.966 MB / 281.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.01258, allocations: 31.89 kB / 281.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.01259, allocations: 11.98 kB / 281.4 MB, free: 13.06 MB / 266.7 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 9.669e-05/0.01269, allocations: 180.4 kB / 281.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.01271, allocations: 27.86 kB / 281.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.92e-05/0.01274, allocations: 25.97 kB / 281.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.01275, allocations: 12.05 kB / 281.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.01275, allocations: 0 / 281.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.01275, allocations: 3.938 kB / 281.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.01293, allocations: 181 kB / 281.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01293, allocations: 0 / 281.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.732e-05/0.01303, allocations: 35.92 kB / 281.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001106/0.01314, allocations: 39.66 kB / 281.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.01315, allocations: 7.984 kB / 281.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008202/0.01398, allocations: 1.729 MB / 283.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01398, allocations: 4 kB / 283.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002892/0.01427, allocations: 250.1 kB / 283.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.553e-05/0.01432, allocations: 39.77 kB / 283.9 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.01434, allocations: 3.984 kB / 283.9 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.816e-05/0.01441, allocations: 12 kB / 283.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.016e-05/0.01447, allocations: 31.94 kB / 283.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.01448, allocations: 15.97 kB / 284 MB, free: 10.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.874e-05/0.01455, allocations: 169.3 kB / 284.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01455, allocations: 0 / 284.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002568/0.01481, allocations: 83.84 kB / 284.2 MB, free: 10.05 MB / 266.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: 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.0001002/0.01491, allocations: 106.7 kB / 284.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002998/0.01521, allocations: 300.9 kB / 284.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.01521, allocations: 0 / 284.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001508/0.01536, allocations: 232.2 kB / 284.8 MB, free: 9.379 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.01556, allocations: 51.58 kB / 284.9 MB, free: 9.332 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009897/0.01655, allocations: 0.5728 MB / 285.5 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.742e-05/0.0166, allocations: 92.17 kB / 285.5 MB, free: 8.617 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.174e-05/0.01666, allocations: 17.94 kB / 285.6 MB, free: 8.602 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.01677, allocations: 118.2 kB / 285.7 MB, free: 8.484 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01677, allocations: 0 / 285.7 MB, free: 8.484 MB / 266.7 MB Notification: Performance of Templates: time 0.005117/0.02189, allocations: 3.191 MB / 288.9 MB, free: 5.344 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.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.7497343993745744]