Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008177/0.0008177, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001318/0.002136, allocations: 449.8 kB / 10.44 MB, free: 252 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.0007564/0.0007564, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001086/0.001843, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.06/1.06, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08847/1.148, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.891e-05/2.028e-05, allocations: 2.312 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003532/0.003552, allocations: 2.936 MB / 247.7 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.004814, allocations: 0.7862 MB / 248.4 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.004948, allocations: 4 kB / 248.4 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.005059, allocations: 43.52 kB / 248.5 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001735/0.005232, allocations: 107 kB / 248.6 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.005499, allocations: 99.67 kB / 248.7 MB, free: 10.2 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000358/0.005857, allocations: 382.2 kB / 249.1 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.006018, allocations: 86.23 kB / 249.2 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002565/0.006274, allocations: 235.5 kB / 249.4 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.006452, allocations: 107.7 kB / 249.5 MB, free: 9.402 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.964e-05/0.006501, allocations: 32 kB / 249.5 MB, free: 9.371 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.607e-05/0.006547, allocations: 28 kB / 249.5 MB, free: 9.344 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.224e-05/0.0066, allocations: 59.8 kB / 249.6 MB, free: 9.285 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.577e-05/0.006695, allocations: 99.81 kB / 249.7 MB, free: 9.188 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.006955, allocations: 227.1 kB / 249.9 MB, free: 8.965 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.061e-05/0.006966, allocations: 0 / 249.9 MB, free: 8.965 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.006967, allocations: 0 / 249.9 MB, free: 8.965 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.006976, allocations: 0 / 249.9 MB, free: 8.965 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.000768/0.007744, allocations: 0.5791 MB / 250.5 MB, free: 8.363 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.007776, allocations: 8.031 kB / 250.5 MB, free: 8.355 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.999e-05/0.007856, allocations: 44.91 kB / 250.6 MB, free: 8.312 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.008097, allocations: 181.2 kB / 250.7 MB, free: 8.109 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.439e-05/0.008181, allocations: 132 kB / 250.9 MB, free: 7.957 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/0.008223, allocations: 24.38 kB / 250.9 MB, free: 7.934 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003051/0.008529, allocations: 294.5 kB / 251.2 MB, free: 7.613 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.008539, allocations: 192 / 251.2 MB, free: 7.613 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.008563, allocations: 24.05 kB / 251.2 MB, free: 7.59 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.008572, allocations: 11.94 kB / 251.2 MB, free: 7.578 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.0087, allocations: 80.55 kB / 251.3 MB, free: 7.5 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.009719, allocations: 0.8217 MB / 252.1 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.0099, allocations: 109.2 kB / 252.2 MB, free: 6.52 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.305e-05/0.009953, allocations: 36.83 kB / 252.2 MB, free: 6.48 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.00997, allocations: 8 kB / 252.3 MB, free: 6.473 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001784/0.01015, allocations: 181.2 kB / 252.4 MB, free: 6.262 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.01015, allocations: 0 / 252.4 MB, free: 6.262 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.000467/0.01062, allocations: 193.4 kB / 252.6 MB, free: 6.066 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.01065, allocations: 59.34 kB / 252.7 MB, free: 5.996 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.01078, allocations: 195.8 kB / 252.9 MB, free: 5.793 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.0108, allocations: 29.7 kB / 252.9 MB, free: 5.758 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.409e-05/0.01088, allocations: 180.4 kB / 253.1 MB, free: 5.574 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.89e-05/0.01093, allocations: 71.41 kB / 253.1 MB, free: 5.504 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.083e-05/0.01101, allocations: 61.48 kB / 253.2 MB, free: 5.438 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.959e-05/0.0111, allocations: 334.8 kB / 253.5 MB, free: 5.102 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.795e-05/0.01115, allocations: 31.92 kB / 253.6 MB, free: 5.07 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.01127, allocations: 157.7 kB / 253.7 MB, free: 4.871 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.01141, allocations: 136.1 kB / 253.9 MB, free: 4.715 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.01141, allocations: 0 / 253.9 MB, free: 4.715 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002267/0.01164, allocations: 180.6 kB / 254 MB, free: 4.531 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.01166, allocations: 11.98 kB / 254 MB, free: 4.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.01166, allocations: 7.922 kB / 254 MB, free: 4.512 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001533/0.01182, allocations: 41.05 kB / 254.1 MB, free: 4.469 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.01201, allocations: 67.91 kB / 254.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008303/0.01284, allocations: 1.316 MB / 255.5 MB, free: 2.996 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.01297, allocations: 39.89 kB / 255.5 MB, free: 2.957 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.01299, allocations: 12 kB / 255.5 MB, free: 2.945 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.458e-05/0.01308, allocations: 134.5 kB / 255.7 MB, free: 2.805 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.789e-05/0.01311, allocations: 15.98 kB / 255.7 MB, free: 2.789 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.109e-05/0.01314, allocations: 29.95 kB / 255.7 MB, free: 2.762 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.01314, allocations: 0 / 255.7 MB, free: 2.762 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.01314, allocations: 4 kB / 255.7 MB, free: 2.758 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.01315, allocations: 3.984 kB / 255.7 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.01332, allocations: 149.7 kB / 255.9 MB, free: 2.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.01332, allocations: 3.938 kB / 255.9 MB, free: 2.586 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001463/0.01347, allocations: 50.25 kB / 255.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.081e-05/0.01352, allocations: 23.8 kB / 255.9 MB, free: 2.516 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.706e-05/0.01362, allocations: 32.83 kB / 256 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.01363, allocations: 15.98 kB / 256 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006612/0.0143, allocations: 1.175 MB / 257.2 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.0143, allocations: 0 / 257.2 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002761/0.01457, allocations: 189.8 kB / 257.3 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.506e-05/0.0146, allocations: 8 kB / 257.3 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.882e-05/0.01468, allocations: 20.14 kB / 257.4 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.804e-05/0.01474, allocations: 35.81 kB / 257.4 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.01475, allocations: 4 kB / 257.4 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.402e-05/0.01481, allocations: 59.03 kB / 257.5 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01481, allocations: 0 / 257.5 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002768/0.01508, allocations: 83.84 kB / 257.5 MB, free: 0.7891 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.0001118/0.0152, allocations: 84.42 kB / 257.6 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.0155, allocations: 237.7 kB / 257.9 MB, free: 464 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/0.01551, allocations: 8 kB / 257.9 MB, free: 456 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.01568, allocations: 187.3 kB / 258 MB, free: 252 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.01599, allocations: 384.1 kB / 258.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/0.01888, allocations: 0.5997 MB / 259 MB, free: 15.17 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.556e-05/0.01893, allocations: 96.55 kB / 259.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.758e-05/0.01901, allocations: 17.95 kB / 259.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.01914, allocations: 95.33 kB / 259.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of SimCode: time 1.162e-06/0.01914, allocations: 0 / 259.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of Templates: time 0.006104/0.02525, allocations: 3.244 MB / 262.5 MB, free: 11.75 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6224110377952456]