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.0009678/0.0009678, allocations: 75.77 kB / 22.46 MB, free: 2.094 MB / 18.57 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.0009538/0.0009538, allocations: 164.1 kB / 25.75 MB, free: 8.961 MB / 18.57 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 0.8582/0.8582, allocations: 158.6 MB / 187.5 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 179] 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 1.452e-06/1.452e-06, allocations: 0 / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.814e-05, allocations: 2.312 kB / 251.1 MB, free: 7.793 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003408/0.003427, allocations: 2.829 MB / 253.9 MB, free: 4.945 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.00448, allocations: 0.7642 MB / 254.7 MB, free: 4.172 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.004605, allocations: 4 kB / 254.7 MB, free: 4.168 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.004756, allocations: 51.44 kB / 254.8 MB, free: 4.117 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001564/0.004913, allocations: 99.11 kB / 254.9 MB, free: 4.02 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.005206, allocations: 99.69 kB / 255 MB, free: 3.922 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003396/0.005545, allocations: 394 kB / 255.3 MB, free: 3.535 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.005724, allocations: 79.67 kB / 255.4 MB, free: 3.453 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000198/0.005922, allocations: 215.5 kB / 255.6 MB, free: 3.242 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.006095, allocations: 111.7 kB / 255.7 MB, free: 3.129 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.781e-05/0.006143, allocations: 32 kB / 255.8 MB, free: 3.098 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.171e-05/0.006185, allocations: 28 kB / 255.8 MB, free: 3.07 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.441e-05/0.006249, allocations: 75.73 kB / 255.9 MB, free: 2.996 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.006363, allocations: 115.7 kB / 256 MB, free: 2.883 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002797/0.006642, allocations: 247.1 kB / 256.2 MB, free: 2.641 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.006645, allocations: 4 kB / 256.2 MB, free: 2.637 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.006646, allocations: 4 kB / 256.2 MB, free: 2.633 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.006651, allocations: 0 / 256.2 MB, free: 2.633 MB / 234.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.001022/0.007673, allocations: 0.6299 MB / 256.9 MB, free: 1.965 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.007709, allocations: 15.92 kB / 256.9 MB, free: 1.949 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.755e-05/0.007807, allocations: 60.69 kB / 256.9 MB, free: 1.891 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.008078, allocations: 212.8 kB / 257.1 MB, free: 1.656 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.53e-05/0.008173, allocations: 136 kB / 257.3 MB, free: 1.5 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.607e-05/0.008219, allocations: 32.31 kB / 257.3 MB, free: 1.469 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003785/0.008598, allocations: 311.1 kB / 257.6 MB, free: 1.133 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.008608, allocations: 192 / 257.6 MB, free: 1.133 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.008636, allocations: 20.11 kB / 257.6 MB, free: 1.113 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.008647, allocations: 4 kB / 257.6 MB, free: 1.109 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002266/0.008873, allocations: 119.8 kB / 257.8 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.01008, allocations: 1.091 MB / 258.8 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002383/0.01032, allocations: 135 kB / 259 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.182e-05/0.01041, allocations: 59.64 kB / 259 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.01042, allocations: 0 / 259 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.01065, allocations: 199.8 kB / 259.2 MB, free: 15.39 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.062e-06/0.01065, allocations: 0 / 259.2 MB, free: 15.39 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006647/0.01131, allocations: 256.9 kB / 259.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.01136, allocations: 110.8 kB / 259.6 MB, free: 14.99 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.01154, allocations: 254.7 kB / 259.8 MB, free: 14.73 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.01156, allocations: 29.7 kB / 259.9 MB, free: 14.69 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.01167, allocations: 231.1 kB / 260.1 MB, free: 14.46 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.515e-05/0.01173, allocations: 75.41 kB / 260.2 MB, free: 14.39 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.973e-05/0.01181, allocations: 55.36 kB / 260.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.01195, allocations: 0.5079 MB / 260.7 MB, free: 13.8 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.258e-05/0.01203, allocations: 39.97 kB / 260.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.01218, allocations: 204.1 kB / 261 MB, free: 13.51 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.01239, allocations: 162.9 kB / 261.1 MB, free: 13.32 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.01239, allocations: 8 kB / 261.1 MB, free: 13.31 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003365/0.01273, allocations: 238.5 kB / 261.4 MB, free: 13.07 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.01274, allocations: 8.219 kB / 261.4 MB, free: 13.06 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.01275, allocations: 7.938 kB / 261.4 MB, free: 13.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002023/0.01295, allocations: 51.58 kB / 261.4 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.01313, allocations: 55.91 kB / 261.5 MB, free: 12.95 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.01421, allocations: 1.977 MB / 263.5 MB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.01434, allocations: 27.84 kB / 263.5 MB, free: 10.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001737/0.01452, allocations: 12 kB / 263.5 MB, free: 10.81 MB / 250.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 0.0001095/0.01463, allocations: 176.5 kB / 263.7 MB, free: 10.63 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.654e-05/0.01466, allocations: 28 kB / 263.7 MB, free: 10.6 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.276e-05/0.0147, allocations: 25.97 kB / 263.7 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.0147, allocations: 3.938 kB / 263.7 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.0147, allocations: 7.984 kB / 263.7 MB, free: 10.56 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.01471, allocations: 0 / 263.7 MB, free: 10.56 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/0.01491, allocations: 224.4 kB / 264 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.01491, allocations: 0 / 264 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.01503, allocations: 27.98 kB / 264 MB, free: 10.28 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001149/0.01514, allocations: 47.59 kB / 264 MB, free: 10.23 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.01516, allocations: 7.984 kB / 264 MB, free: 10.22 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008393/0.016, allocations: 1.752 MB / 265.8 MB, free: 8.344 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.016, allocations: 0 / 265.8 MB, free: 8.344 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003947/0.01639, allocations: 275.9 kB / 266.1 MB, free: 8.047 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.919e-05/0.01645, allocations: 35.77 kB / 266.1 MB, free: 8.012 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.01648, allocations: 4 kB / 266.1 MB, free: 8.008 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-05/0.01657, allocations: 19.98 kB / 266.1 MB, free: 7.988 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.236e-05/0.01664, allocations: 27.94 kB / 266.1 MB, free: 7.961 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.01665, allocations: 4 kB / 266.2 MB, free: 7.957 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.378e-05/0.01675, allocations: 177.4 kB / 266.3 MB, free: 7.785 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01675, allocations: 0 / 266.3 MB, free: 7.785 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003241/0.01707, allocations: 87.88 kB / 266.4 MB, free: 7.699 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: 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.0001043/0.01718, allocations: 107.1 kB / 266.5 MB, free: 7.586 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003996/0.01758, allocations: 308.4 kB / 266.8 MB, free: 7.266 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.01758, allocations: 0 / 266.8 MB, free: 7.266 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.01777, allocations: 242.4 kB / 267.1 MB, free: 7.008 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.01801, allocations: 44.28 kB / 267.1 MB, free: 6.965 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.0192, allocations: 0.5806 MB / 267.7 MB, free: 6.355 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.357e-05/0.01925, allocations: 92.22 kB / 267.8 MB, free: 6.246 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.064e-05/0.01932, allocations: 17.94 kB / 267.8 MB, free: 6.227 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.45e-05/0.01937, allocations: 24.5 kB / 267.8 MB, free: 6.203 MB / 250.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01937, allocations: 0 / 267.8 MB, free: 6.203 MB / 250.7 MB Notification: Performance of Templates: time 0.005734/0.0251, allocations: 2.925 MB / 270.7 MB, free: 3.305 MB / 250.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] 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","",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.896335429046303]