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.001311/0.001311, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001717/0.001717, allocations: 166.9 kB / 25.33 MB, free: 8.586 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 1.037/1.037, allocations: 158.6 MB / 187.2 MB, free: 2.93 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 2.054e-06/2.054e-06, allocations: 3.938 kB / 251.1 MB, free: 7.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.413e-05/3.619e-05, allocations: 2.312 kB / 251.1 MB, free: 7.496 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004838/0.004874, allocations: 2.825 MB / 253.9 MB, free: 4.652 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.006734, allocations: 0.7525 MB / 254.6 MB, free: 3.891 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002616/0.006996, allocations: 7.938 kB / 254.6 MB, free: 3.883 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002246/0.00722, allocations: 55.5 kB / 254.7 MB, free: 3.828 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.007494, allocations: 99.06 kB / 254.8 MB, free: 3.73 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005587/0.008052, allocations: 107.6 kB / 254.9 MB, free: 3.625 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005266/0.008579, allocations: 386.1 kB / 255.3 MB, free: 3.246 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.008842, allocations: 79.69 kB / 255.4 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003503/0.009192, allocations: 211.5 kB / 255.6 MB, free: 2.957 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.009454, allocations: 119.7 kB / 255.7 MB, free: 2.84 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.803e-05/0.009522, allocations: 32 kB / 255.7 MB, free: 2.809 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.592e-05/0.009578, allocations: 32 kB / 255.7 MB, free: 2.777 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-05/0.009648, allocations: 67.75 kB / 255.8 MB, free: 2.711 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.009801, allocations: 119.7 kB / 255.9 MB, free: 2.594 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004115/0.01021, allocations: 251 kB / 256.2 MB, free: 2.348 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.01022, allocations: 0 / 256.2 MB, free: 2.348 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.01022, allocations: 0 / 256.2 MB, free: 2.348 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.01023, allocations: 0 / 256.2 MB, free: 2.348 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.0012/0.01143, allocations: 0.6377 MB / 256.8 MB, free: 1.672 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.379e-05/0.01149, allocations: 11.98 kB / 256.8 MB, free: 1.66 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.01164, allocations: 64.73 kB / 256.9 MB, free: 1.598 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.01206, allocations: 208.7 kB / 257.1 MB, free: 1.367 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.0122, allocations: 124 kB / 257.2 MB, free: 1.223 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.01226, allocations: 28.38 kB / 257.2 MB, free: 1.195 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005029/0.01276, allocations: 315.1 kB / 257.5 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.01278, allocations: 12.12 kB / 257.6 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.115e-05/0.01282, allocations: 12.12 kB / 257.6 MB, free: 0.832 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.01284, allocations: 8 kB / 257.6 MB, free: 0.8242 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002646/0.0131, allocations: 119.8 kB / 257.7 MB, free: 0.707 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.01472, allocations: 1.095 MB / 258.8 MB, free: 15.54 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.01502, allocations: 131.1 kB / 258.9 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.01513, allocations: 51.67 kB / 259 MB, free: 15.34 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.01515, allocations: 4 kB / 259 MB, free: 15.34 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.01541, allocations: 195.7 kB / 259.2 MB, free: 15.11 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 2.755e-06/0.01541, allocations: 4 kB / 259.2 MB, free: 15.11 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007754/0.01619, allocations: 256.9 kB / 259.4 MB, free: 14.84 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/0.01626, allocations: 110.8 kB / 259.5 MB, free: 14.71 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.01645, allocations: 250.7 kB / 259.8 MB, free: 14.45 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.01648, allocations: 37.69 kB / 259.8 MB, free: 14.41 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.0166, allocations: 235.1 kB / 260 MB, free: 14.17 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.524e-05/0.01666, allocations: 75.38 kB / 260.1 MB, free: 14.1 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/0.01675, allocations: 63.34 kB / 260.2 MB, free: 14.03 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.0169, allocations: 0.4962 MB / 260.7 MB, free: 13.52 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.444e-05/0.01699, allocations: 39.97 kB / 260.7 MB, free: 13.48 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.01717, allocations: 204.2 kB / 260.9 MB, free: 13.23 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.0174, allocations: 170.8 kB / 261.1 MB, free: 13.03 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.01741, allocations: 4 kB / 261.1 MB, free: 13.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003985/0.0178, allocations: 246.5 kB / 261.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.01783, allocations: 4 kB / 261.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.01783, allocations: 4 kB / 261.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002556/0.01809, allocations: 43.88 kB / 261.4 MB, free: 12.72 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.01829, allocations: 55.91 kB / 261.4 MB, free: 12.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/0.01968, allocations: 1.977 MB / 263.4 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.01986, allocations: 39.95 kB / 263.4 MB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.01988, allocations: 8 kB / 263.4 MB, free: 10.52 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.0001367/0.02001, allocations: 176.5 kB / 263.6 MB, free: 10.34 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.242e-05/0.02006, allocations: 23.91 kB / 263.6 MB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.264e-05/0.0201, allocations: 29.95 kB / 263.7 MB, free: 10.28 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.0201, allocations: 3.938 kB / 263.7 MB, free: 10.28 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.02011, allocations: 0 / 263.7 MB, free: 10.28 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.02011, allocations: 0 / 263.7 MB, free: 10.28 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/0.02035, allocations: 228.4 kB / 263.9 MB, free: 10.02 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.02036, allocations: 4 kB / 263.9 MB, free: 10.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.0205, allocations: 35.92 kB / 263.9 MB, free: 9.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001598/0.02066, allocations: 43.62 kB / 264 MB, free: 9.934 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.02068, allocations: 4 kB / 264 MB, free: 9.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.02181, allocations: 1.759 MB / 265.7 MB, free: 8.047 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.02181, allocations: 0 / 265.7 MB, free: 8.047 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/0.02229, allocations: 271.7 kB / 266 MB, free: 7.754 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.04e-05/0.02237, allocations: 35.78 kB / 266 MB, free: 7.719 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.0224, allocations: 4 kB / 266 MB, free: 7.715 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.0225, allocations: 20.14 kB / 266.1 MB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.02261, allocations: 31.94 kB / 266.1 MB, free: 7.664 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.02263, allocations: 8 kB / 266.1 MB, free: 7.656 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001196/0.02275, allocations: 173.4 kB / 266.3 MB, free: 7.488 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02275, allocations: 4 kB / 266.3 MB, free: 7.484 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004135/0.02316, allocations: 79.84 kB / 266.4 MB, free: 7.406 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.0001504/0.02331, allocations: 114.8 kB / 266.5 MB, free: 7.289 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005238/0.02383, allocations: 308.5 kB / 266.8 MB, free: 6.969 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.02384, allocations: 4 kB / 266.8 MB, free: 6.965 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.02409, allocations: 238.4 kB / 267 MB, free: 6.711 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.0244, allocations: 31.92 kB / 267 MB, free: 6.68 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.02593, allocations: 0.581 MB / 267.6 MB, free: 6.07 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.429e-05/0.02599, allocations: 88.22 kB / 267.7 MB, free: 5.965 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.783e-05/0.02608, allocations: 25.94 kB / 267.7 MB, free: 5.938 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.704e-05/0.02613, allocations: 24.44 kB / 267.8 MB, free: 5.914 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02613, allocations: 0 / 267.8 MB, free: 5.914 MB / 250.7 MB Notification: Performance of Templates: time 0.006395/0.03253, allocations: 2.932 MB / 270.7 MB, free: 3.008 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: 3.119656341150403]