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.000748/0.000748, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009968/0.001745, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007104/0.0007104, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000976/0.001686, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.8139/0.8139, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1435/0.9574, allocations: 49.49 MB / 220.5 MB, free: 1.453 MB / 218.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.352e-06/1.352e-06, allocations: 0 / 221.8 MB, free: 172 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.02e-05/1.155e-05, allocations: 2.312 kB / 221.8 MB, free: 168 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002643/0.002655, allocations: 2.86 MB / 224.7 MB, free: 13.29 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009879/0.003643, allocations: 0.7834 MB / 225.5 MB, free: 12.49 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.003755, allocations: 7.938 kB / 225.5 MB, free: 12.48 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.376e-05/0.003839, allocations: 55.5 kB / 225.5 MB, free: 12.43 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.00397, allocations: 91.12 kB / 225.6 MB, free: 12.34 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002199/0.00419, allocations: 111.7 kB / 225.7 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002867/0.004476, allocations: 382.2 kB / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.004617, allocations: 82.31 kB / 226.2 MB, free: 11.77 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.00482, allocations: 235.3 kB / 226.4 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.00497, allocations: 119.7 kB / 226.5 MB, free: 11.43 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.005008, allocations: 28 kB / 226.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.179e-05/0.00504, allocations: 36 kB / 226.6 MB, free: 11.36 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.939e-05/0.005079, allocations: 51.81 kB / 226.7 MB, free: 11.31 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.326e-05/0.005162, allocations: 95.81 kB / 226.8 MB, free: 11.22 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.005385, allocations: 227.1 kB / 227 MB, free: 11 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.159e-05/0.005397, allocations: 0 / 227 MB, free: 11 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.005397, allocations: 0 / 227 MB, free: 11 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.005409, allocations: 0 / 227 MB, free: 11 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.000681/0.006089, allocations: 0.5752 MB / 227.5 MB, free: 10.4 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.006122, allocations: 12.03 kB / 227.6 MB, free: 10.39 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.754e-05/0.00619, allocations: 52.89 kB / 227.6 MB, free: 10.34 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/0.006399, allocations: 177.2 kB / 227.8 MB, free: 10.14 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.018e-05/0.006479, allocations: 128 kB / 227.9 MB, free: 9.988 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.006512, allocations: 28.38 kB / 227.9 MB, free: 9.961 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.006766, allocations: 298.5 kB / 228.2 MB, free: 9.637 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.006775, allocations: 4.188 kB / 228.2 MB, free: 9.633 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.006796, allocations: 16.12 kB / 228.2 MB, free: 9.617 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.006803, allocations: 8 kB / 228.3 MB, free: 9.609 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001063/0.006909, allocations: 76.55 kB / 228.3 MB, free: 9.535 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008486/0.007758, allocations: 0.8215 MB / 229.2 MB, free: 8.664 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/0.007912, allocations: 110.5 kB / 229.3 MB, free: 8.547 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.516e-05/0.007958, allocations: 40.83 kB / 229.3 MB, free: 8.504 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.007977, allocations: 4 kB / 229.3 MB, free: 8.5 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005787/0.008556, allocations: 189.2 kB / 229.5 MB, free: 8.281 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.008557, allocations: 0 / 229.5 MB, free: 8.281 MB / 234.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004237/0.008981, allocations: 186.3 kB / 229.7 MB, free: 8.09 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.065e-05/0.009022, allocations: 67.27 kB / 229.7 MB, free: 8.012 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.009129, allocations: 195.7 kB / 229.9 MB, free: 7.809 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.009148, allocations: 25.7 kB / 230 MB, free: 7.777 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.869e-05/0.009217, allocations: 176.4 kB / 230.1 MB, free: 7.602 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.229e-05/0.009259, allocations: 79.39 kB / 230.2 MB, free: 7.523 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.509e-05/0.009314, allocations: 61.64 kB / 230.3 MB, free: 7.457 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.644e-05/0.00939, allocations: 334.8 kB / 230.6 MB, free: 7.121 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.252e-05/0.009423, allocations: 27.98 kB / 230.6 MB, free: 7.094 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.769e-05/0.009511, allocations: 159.9 kB / 230.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001114/0.009622, allocations: 132.1 kB / 230.9 MB, free: 6.742 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.009625, allocations: 7.969 kB / 230.9 MB, free: 6.734 MB / 234.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001717/0.009796, allocations: 179.9 kB / 231.1 MB, free: 6.551 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.00981, allocations: 4 kB / 231.1 MB, free: 6.547 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.009816, allocations: 4 kB / 231.1 MB, free: 6.543 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001375/0.009953, allocations: 45.05 kB / 231.1 MB, free: 6.496 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.01011, allocations: 67.84 kB / 231.2 MB, free: 6.43 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006937/0.0108, allocations: 1.316 MB / 232.5 MB, free: 5.027 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.916e-05/0.0109, allocations: 35.97 kB / 232.6 MB, free: 4.992 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.01091, allocations: 4 kB / 232.6 MB, free: 4.988 MB / 234.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 8.888e-05/0.011, allocations: 133.7 kB / 232.7 MB, free: 4.848 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.967e-05/0.01102, allocations: 19.98 kB / 232.7 MB, free: 4.828 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.01105, allocations: 25.95 kB / 232.7 MB, free: 4.801 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.01106, allocations: 4 kB / 232.7 MB, free: 4.797 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.01106, allocations: 0 / 232.7 MB, free: 4.797 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.01106, allocations: 0 / 232.7 MB, free: 4.797 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.01121, allocations: 165.6 kB / 232.9 MB, free: 4.617 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01121, allocations: 0 / 232.9 MB, free: 4.617 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.01133, allocations: 47.91 kB / 232.9 MB, free: 4.57 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.874e-05/0.01137, allocations: 19.89 kB / 233 MB, free: 4.551 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.419e-05/0.01145, allocations: 32.83 kB / 233 MB, free: 4.516 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.01146, allocations: 7.984 kB / 233 MB, free: 4.508 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005342/0.01199, allocations: 1.17 MB / 234.2 MB, free: 3.254 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.012, allocations: 3.938 kB / 234.2 MB, free: 3.25 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002183/0.01222, allocations: 201.7 kB / 234.4 MB, free: 3.031 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.01223, allocations: 0 / 234.4 MB, free: 3.031 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.745e-05/0.01229, allocations: 24.14 kB / 234.4 MB, free: 3.008 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.01235, allocations: 27.94 kB / 234.4 MB, free: 2.98 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.01235, allocations: 8 kB / 234.4 MB, free: 2.973 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.021e-05/0.01239, allocations: 59.02 kB / 234.5 MB, free: 2.914 MB / 234.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01239, allocations: 0 / 234.5 MB, free: 2.914 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002003/0.0126, allocations: 87.78 kB / 234.6 MB, free: 2.828 MB / 234.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 7.97e-05/0.01267, allocations: 80.42 kB / 234.7 MB, free: 2.738 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.000259/0.01293, allocations: 234.4 kB / 234.9 MB, free: 2.496 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.01294, allocations: 4 kB / 234.9 MB, free: 2.492 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.01306, allocations: 172.3 kB / 235.1 MB, free: 2.309 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.0132, allocations: 61.88 kB / 235.1 MB, free: 2.25 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.01538, allocations: 0.5962 MB / 235.7 MB, free: 1.625 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.701e-05/0.01543, allocations: 92.31 kB / 235.8 MB, free: 1.516 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 6.015e-05/0.01549, allocations: 21.92 kB / 235.8 MB, free: 1.496 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.747e-05/0.01558, allocations: 91.36 kB / 235.9 MB, free: 1.406 MB / 234.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01558, allocations: 0 / 235.9 MB, free: 1.406 MB / 234.7 MB Notification: Performance of Templates: time 0.005195/0.02078, allocations: 3.33 MB / 239.2 MB, free: 14.1 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 -ignoreHideResult -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.501091887243092]