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.001038/0.001038, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.001196/0.001196, allocations: 170.3 kB / 25.69 MB, free: 8.453 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.025/1.025, allocations: 158.6 MB / 187.6 MB, free: 2.773 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.703e-06/1.703e-06, allocations: 0 / 251.6 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.919e-05/3.089e-05, allocations: 2.312 kB / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003131/0.003162, allocations: 2.864 MB / 254.4 MB, free: 4.344 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.004491, allocations: 0.7756 MB / 255.2 MB, free: 3.559 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.004628, allocations: 4 kB / 255.2 MB, free: 3.555 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.004774, allocations: 51.5 kB / 255.3 MB, free: 3.504 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.004932, allocations: 99.06 kB / 255.4 MB, free: 3.406 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003158/0.005248, allocations: 107.7 kB / 255.5 MB, free: 3.301 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003021/0.00555, allocations: 382.1 kB / 255.8 MB, free: 2.926 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.00571, allocations: 86.25 kB / 255.9 MB, free: 2.836 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.005893, allocations: 219.5 kB / 256.1 MB, free: 2.621 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.006065, allocations: 107.7 kB / 256.2 MB, free: 2.516 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.006112, allocations: 32 kB / 256.3 MB, free: 2.484 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.245e-05/0.006144, allocations: 32 kB / 256.3 MB, free: 2.453 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.73e-05/0.006191, allocations: 71.73 kB / 256.4 MB, free: 2.383 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.884e-05/0.00628, allocations: 123.7 kB / 256.5 MB, free: 2.262 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.006528, allocations: 251 kB / 256.7 MB, free: 2.016 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.006531, allocations: 0 / 256.7 MB, free: 2.016 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.006532, allocations: 0 / 256.7 MB, free: 2.016 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.006537, allocations: 0 / 256.7 MB, free: 2.016 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.0006146/0.007152, allocations: 0.5052 MB / 257.3 MB, free: 1.484 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.007193, allocations: 11.98 kB / 257.3 MB, free: 1.473 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.933e-05/0.007263, allocations: 56.89 kB / 257.3 MB, free: 1.418 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.007497, allocations: 181.2 kB / 257.5 MB, free: 1.215 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.725e-05/0.007584, allocations: 128 kB / 257.6 MB, free: 1.066 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.007621, allocations: 32.38 kB / 257.7 MB, free: 1.035 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.007897, allocations: 286.5 kB / 257.9 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.007912, allocations: 192 / 257.9 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.007935, allocations: 20.12 kB / 258 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.007945, allocations: 11.98 kB / 258 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.008054, allocations: 88.42 kB / 258 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009388/0.008993, allocations: 0.8216 MB / 258.9 MB, free: 15.74 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/0.009173, allocations: 94.53 kB / 259 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.953e-05/0.009223, allocations: 44.83 kB / 259 MB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.009242, allocations: 4 kB / 259 MB, free: 15.59 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001898/0.009431, allocations: 177.3 kB / 259.2 MB, free: 15.38 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.009433, allocations: 3.938 kB / 259.2 MB, free: 15.38 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.000468/0.009901, allocations: 194.3 kB / 259.4 MB, free: 15.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.009955, allocations: 118.7 kB / 259.5 MB, free: 15.04 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.01007, allocations: 183.8 kB / 259.7 MB, free: 14.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.01009, allocations: 33.7 kB / 259.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.922e-05/0.01018, allocations: 176.4 kB / 259.9 MB, free: 14.63 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.256e-05/0.01023, allocations: 75.39 kB / 260 MB, free: 14.55 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-05/0.0103, allocations: 61.64 kB / 260 MB, free: 14.49 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.713e-05/0.01038, allocations: 334.8 kB / 260.3 MB, free: 14.15 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.815e-05/0.01042, allocations: 31.98 kB / 260.4 MB, free: 14.12 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.01052, allocations: 159.8 kB / 260.5 MB, free: 13.92 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.01066, allocations: 132.1 kB / 260.7 MB, free: 13.77 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.01066, allocations: 0 / 260.7 MB, free: 13.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002241/0.01089, allocations: 187.9 kB / 260.8 MB, free: 13.58 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.01091, allocations: 4 kB / 260.8 MB, free: 13.57 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.01091, allocations: 4 kB / 260.8 MB, free: 13.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001807/0.0111, allocations: 33.05 kB / 260.9 MB, free: 13.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.01125, allocations: 75.84 kB / 261 MB, free: 13.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008032/0.01206, allocations: 1.308 MB / 262.3 MB, free: 12.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.317e-05/0.01215, allocations: 35.84 kB / 262.3 MB, free: 12.03 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.01216, allocations: 16.11 kB / 262.3 MB, free: 12.02 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 9.006e-05/0.01225, allocations: 129.7 kB / 262.4 MB, free: 11.88 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.23e-05/0.01228, allocations: 19.98 kB / 262.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.948e-05/0.0123, allocations: 25.95 kB / 262.5 MB, free: 11.83 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.01231, allocations: 4 kB / 262.5 MB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.01231, allocations: 0 / 262.5 MB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.01231, allocations: 0 / 262.5 MB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001468/0.01246, allocations: 157.6 kB / 262.6 MB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01246, allocations: 0 / 262.6 MB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.01258, allocations: 51.91 kB / 262.7 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.22e-05/0.01268, allocations: 36.77 kB / 262.7 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.01269, allocations: 0 / 262.7 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006204/0.01331, allocations: 1.174 MB / 263.9 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.01331, allocations: 3.984 kB / 263.9 MB, free: 10.3 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000237/0.01355, allocations: 197.7 kB / 264.1 MB, free: 10.09 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.511e-05/0.01359, allocations: 23.84 kB / 264.1 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.01361, allocations: 4 kB / 264.1 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.043e-05/0.01367, allocations: 20.08 kB / 264.1 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.082e-05/0.01374, allocations: 31.88 kB / 264.2 MB, free: 10.01 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.01375, allocations: 4 kB / 264.2 MB, free: 10 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.262e-05/0.01379, allocations: 59.03 kB / 264.2 MB, free: 9.945 MB / 250.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01379, allocations: 0 / 264.2 MB, free: 9.945 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002102/0.014, allocations: 83.84 kB / 264.3 MB, free: 9.863 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.0001031/0.01411, allocations: 80.42 kB / 264.4 MB, free: 9.773 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003037/0.01441, allocations: 234.6 kB / 264.6 MB, free: 9.531 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.01442, allocations: 0 / 264.6 MB, free: 9.531 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.01455, allocations: 176.3 kB / 264.8 MB, free: 9.344 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/0.01473, allocations: 47.22 kB / 264.8 MB, free: 9.301 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.01575, allocations: 0.5639 MB / 265.4 MB, free: 8.711 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.918e-05/0.0158, allocations: 92.22 kB / 265.5 MB, free: 8.602 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.301e-05/0.01587, allocations: 17.95 kB / 265.5 MB, free: 8.586 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.01597, allocations: 91.34 kB / 265.6 MB, free: 8.496 MB / 250.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01598, allocations: 4 kB / 265.6 MB, free: 8.492 MB / 250.7 MB Notification: Performance of Templates: time 0.005632/0.02161, allocations: 3.162 MB / 268.8 MB, free: 5.359 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 -s gbode -gbm=radauIIA3 -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.8022596100345254]